Project

General

Profile

Actions

Bug #1060

closed

master-2013-12-02: util-debug.c : index() needs strings.h in Solaris

Added by Mark Solaris almost 11 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

cc -xtarget=ultra -m64 -xcode=pic32 -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/nspr  -I/usr/local/include -I/usr/local/lib -DLOCAL_STATE_DIR=\"/usr/local/var\" -g -DOS_SOLARIS -DDEBUG -DPROFILING -DPROFILING -DPROFILE_LOCKING  -I/usr/local/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -c util-debug.c
"util-debug.c", line 308: warning: implicit function declaration: index
"util-debug.c", line 308: warning: improper pointer/integer combination: op "=" 

--- ../../suricata-master.orig/src/util-debug.c 2013-12-01 21:37:52.000000000 +1100
+++ util-debug.c        2013-12-07 00:17:02.630377620 +1100
@@ -43,6 +43,9 @@
 #include "util-syslog.h" 

 #include "conf.h" 
+#if defined(OS_SOLARIS)
+#include <strings.h>
+#endif /* OS_SOLARIS */

 /* holds the string-enum mapping for the enums held in the table SCLogLevel */
 SCEnumCharMap sc_log_level_map[ ] = {
Actions #1

Updated by Andreas Herz almost 9 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF