mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Fix compilation: do not redefine the strcasestr function.
PR: 33999 Submitted by: Miguel Mendez <flynn@eneryhq.homeip.net>
This commit is contained in:
parent
fda870ff76
commit
5f4f437c94
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53361
31
security/nessus/files/patch-nessus-html_graph_output.c
Normal file
31
security/nessus/files/patch-nessus-html_graph_output.c
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user