aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-10 19:13:09 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-10 19:13:09 +0000
commit5fa7d37e377abb89e317f4ebd47ebea69ebe0fd9 (patch)
tree2e782fc004f10f9191800efe801922ce556f49db /epan/tap.h
parent25ce6c262edc7348ec1057f929630e6862eff47d (diff)
Fix epan building with undefined HAVE_PLUGINS
+ guard prototypes with HAVE_PLUGINS in .h files to get errors before linking. svn path=/trunk/; revision=53909
Diffstat (limited to 'epan/tap.h')
-rw-r--r--epan/tap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/tap.h b/epan/tap.h
index 692cd39c22..ea413f38db 100644
--- a/epan/tap.h
+++ b/epan/tap.h
@@ -25,6 +25,8 @@
#ifndef __TAP_H__
#define __TAP_H__
+#include "config.h"
+
#include <epan/epan.h>
#include "ws_symbol_export.h"
@@ -46,9 +48,11 @@ typedef void (*tap_draw_cb)(void *tapdata);
#define TL_IS_DISSECTOR_HELPER 0x00000004 /**< tap helps a dissector do work
** but does not, itself, require dissection */
+#ifdef HAVE_PLUGINS
/** Register tap plugin type with the plugin system.
Called by epan_register_plugin_types(); do not call it yourself. */
extern void register_tap_plugin_type(void);
+#endif
/*
* For all tap plugins, call their register routines.