diff --git a/src/lib/ndpi_plugin.c b/src/lib/ndpi_plugin.c index f7ee0131a..dd96080a8 100644 --- a/src/lib/ndpi_plugin.c +++ b/src/lib/ndpi_plugin.c @@ -39,9 +39,9 @@ /* ************************************** */ /* Load a single protocol plugin */ -#ifdef HAVE_PLUGINS static bool ndpi_load_protocol_plugin(struct ndpi_detection_module_struct *ndpi_struct, char *plugin_path) { +#ifdef HAVE_PLUGINS void *pluginEntryFctnPtr; void *pluginPtr; NDPIProtocolPluginEntryPoint* (*pluginEntryFctn)(void); @@ -94,8 +94,10 @@ static bool ndpi_load_protocol_plugin(struct ndpi_detection_module_struct *ndpi_ } return(true); -} +#else + return(false); #endif +} /* ************************************** */