opnsense-ports/security/pev/files/patch-src_plugins.c
Franco Fichtner 562eaadf3d */*: sync with upstream
Taken from: FreeBSD
2017-01-23 06:21:51 +01:00

11 lines
510 B
C

--- src/plugins.c.orig 2017-01-06 22:27:18 UTC
+++ src/plugins.c
@@ -167,7 +167,7 @@ int plugins_load_all_from_directory(cons
const char *filename = dir_entry->d_name;
// TODO(jweyrich): Use macro conditions for each system: .so, .dylib, .dll
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
const bool possible_plugin = utils_str_ends_with(filename, ".so") != 0;
#elif defined(__APPLE__)
const bool possible_plugin = utils_str_ends_with(filename, ".dylib") != 0;