Fix problem building external plugins

The file plugin.h is installed to $prefix/include and used by external
plugins.  Therefore it must not include, or depend on, features set by
the configure script in config.h

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-15 15:07:24 +01:00
parent c616270ccb
commit d35a8bbda9
4 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -382,11 +382,11 @@ static int load_plugins(char *path)
}
#endif /* ENABLE_STATIC */
int plugin_init(uev_ctx_t *ctx, char *path)
int plugin_init(uev_ctx_t *ctx)
{
int fail = 1;
if (!load_plugins(path))
if (!load_plugins(PLUGIN_PATH))
fail = init_plugins(ctx);
return fail;