diff options
author | olgeni <olgeni@FreeBSD.org> | 2002-01-19 21:43:26 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2002-01-19 21:43:26 +0000 |
commit | 9f0c713b521afc6b7ce9f70587fc428668ad8a54 (patch) | |
tree | 8a930354eddfc0d2dbf20fa33fbc7b2bc17b34ea /security/nessus | |
parent | 361df9903b1a3b6006c054dd9fc19fbe097fa3cb (diff) | |
download | FreeBSD-ports-9f0c713b521afc6b7ce9f70587fc428668ad8a54.zip FreeBSD-ports-9f0c713b521afc6b7ce9f70587fc428668ad8a54.tar.gz |
Fix compilation: do not redefine the strcasestr function.
PR: 33999
Submitted by: Miguel Mendez <flynn@eneryhq.homeip.net>
Diffstat (limited to 'security/nessus')
-rw-r--r-- | security/nessus/files/patch-nessus-html_graph_output.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/security/nessus/files/patch-nessus-html_graph_output.c b/security/nessus/files/patch-nessus-html_graph_output.c new file mode 100644 index 0000000..a41cf64 --- /dev/null +++ b/security/nessus/files/patch-nessus-html_graph_output.c @@ -0,0 +1,31 @@ +--- nessus/html_graph_output.c.old Thu Jan 17 18:44:40 2002 ++++ nessus/html_graph_output.c Thu Jan 17 18:47:20 2002 +@@ -65,8 +65,9 @@ + #include "globals.h" + #include "nsr_output.h" + +- ++#ifndef __FreeBSD__ + static char* strcasestr(char*, char *); ++#endif + static void insert_img(FILE *, char*); + + +@@ -90,7 +91,8 @@ + /* + * Handy functions + */ +- ++ ++#ifndef __FreeBSD__ + static char * + strcasestr(char * haystack, char * needle) + { +@@ -109,6 +111,7 @@ + } + return NULL; + } ++#endif + + static void + insert_img(f, name) |