diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-04-24 04:54:52 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-04-24 04:54:52 +0000 |
commit | 27af6cfe53205a56d6370647ec6af4006d64e428 (patch) | |
tree | daf6fed8131a9a2d65fe4a7e1efc0c3deb445c6b /security/snortsam | |
parent | 95dff52f815cb1145085cc5c4b51c007cd74f466 (diff) | |
download | ports-27af6cfe53205a56d6370647ec6af4006d64e428.tar.gz ports-27af6cfe53205a56d6370647ec6af4006d64e428.zip |
security/snortsam: Unbreak build on FreeBSD >= 12.1
snortsam.c:750:6: error: conflicting types for 'parseline'
void parseline(char *arg,bool first,char *file,unsigned long line)
^
./snortsam.h:470:6: note: previous declaration is here
void parseline(char *arg,bool first,char *file,unsigned long line);
^
http://beefy6.nyi.freebsd.org/data/121amd64-default/532242/logs/errors/snortsam-2.70_1.log
http://beefy18.nyi.freebsd.org/data/head-amd64-default/p532607_s360211/logs/errors/snortsam-2.70_1.log
Notes
Notes:
svn path=/head/; revision=532735
Diffstat (limited to 'security/snortsam')
-rw-r--r-- | security/snortsam/files/patch-src_snortsam.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/snortsam/files/patch-src_snortsam.h b/security/snortsam/files/patch-src_snortsam.h new file mode 100644 index 000000000000..7e8fe2d2dd4f --- /dev/null +++ b/security/snortsam/files/patch-src_snortsam.h @@ -0,0 +1,19 @@ +Avoid redefining bool + +snortsam.c:750:6: error: conflicting types for 'parseline' +void parseline(char *arg,bool first,char *file,unsigned long line) + ^ +./snortsam.h:470:6: note: previous declaration is here +void parseline(char *arg,bool first,char *file,unsigned long line); + ^ + +--- src/snortsam.h.orig 2020-03-30 10:54:24 UTC ++++ src/snortsam.h +@@ -59,6 +59,7 @@ + #endif + + ++#include <stdbool.h> + #include <stdlib.h> + #include <stdio.h> + #include <time.h> |