aboutsummaryrefslogtreecommitdiffstats
path: root/testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch')
-rw-r--r--testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch b/testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch
new file mode 100644
index 0000000000..9e31f38566
--- /dev/null
+++ b/testing/barnyard2/10-fix-output-fwsam-and-database_cache.patch
@@ -0,0 +1,21 @@
+--- a/src/output-plugins/spo_alert_fwsam.c
++++ b/src/output-plugins/spo_alert_fwsam.c
+@@ -115,6 +115,7 @@
+ #include <sys/filio.h>
+ #endif
+
++#undef SOCKET
+ typedef int SOCKET;
+
+ #ifndef INVALID_SOCKET
+--- a/src/output-plugins/spo_database_cache.c
++++ b/src/output-plugins/spo_database_cache.c
+@@ -107,7 +107,7 @@
+ /* Destructor */
+
+ /* Return largest string lenght */
+-inline u_int32_t glsl(char *a,char *b)
++static inline u_int32_t glsl(char *a,char *b)
+ {
+ u_int32_t alen = 0;
+ u_int32_t blen = 0;