svn commit: r304953 - head/sys/contrib/ipfilter/netinet
Dimitry Andric
dim at FreeBSD.org
Sun Aug 28 11:51:47 UTC 2016
Author: dim
Date: Sun Aug 28 11:51:46 2016
New Revision: 304953
URL: https://svnweb.freebsd.org/changeset/base/304953
Log:
Define ipfilter's SOLARIS macro in a defined and portable way.
Reviewed by: cy
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7671
Modified:
head/sys/contrib/ipfilter/netinet/ip_compat.h
Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_compat.h Sun Aug 28 07:40:11 2016 (r304952)
+++ head/sys/contrib/ipfilter/netinet/ip_compat.h Sun Aug 28 11:51:46 2016 (r304953)
@@ -32,7 +32,11 @@
# define __KERNEL__
#endif
-#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
+#if defined(sun) && (defined(__svr4__) || defined(__SVR4))
+# define SOLARIS 1
+#else
+# define SOLARIS 0
+#endif
#if defined(__SVR4) || defined(__svr4__) || defined(__sgi)
More information about the svn-src-head
mailing list