about summary refs log tree commit diff
path: root/src/base/detect.h
diff options
context:
space:
mode:
authorIan Wilson <ian.a.wilson@rochester.edu>2011-09-08 19:41:53 -0400
committeroy <Tom_Adams@web.de>2011-09-12 00:16:31 +0200
commit5dd2d189ada193841285d8c19ff998de9f1574d2 (patch)
treec7b73815241b358881f93e1020cf814127cfd96e /src/base/detect.h
parentac929c036598bfd94c28b57cd924d66647512513 (diff)
downloadzcatch-5dd2d189ada193841285d8c19ff998de9f1574d2.tar.gz
zcatch-5dd2d189ada193841285d8c19ff998de9f1574d2.zip
Fixes for compiling with Solaris kernel.
Fixed typo in CONF_PLATFORM_SOLARIS. Made sure that we don't try to use
the gcc endianness for Solaris. Included sys/filio.h for Solaris so that
FIONBIO is defined. Added linking flags -lsocket and -lnsl for Solaris
in bam.
Diffstat (limited to 'src/base/detect.h')
-rw-r--r--src/base/detect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/detect.h b/src/base/detect.h
index f802b119..eb12244c 100644
--- a/src/base/detect.h
+++ b/src/base/detect.h
@@ -63,7 +63,7 @@
 #if defined(__sun)
 	#define CONF_FAMILY_UNIX 1
 	#define CONF_FAMILY_STRING "unix"
-	#define CONF_PLATFROM_SOLARIS 1
+	#define CONF_PLATFORM_SOLARIS 1
 	#define CONF_PLATFORM_STRING "solaris"
 #endif
 
@@ -77,7 +77,7 @@
 
 
 /* use gcc endianness definitions when available */
-#if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__)
+#if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__sun)
 	#if defined(__FreeBSD__) || defined(__OpenBSD__)
 		#include <sys/endian.h>
 	#else