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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to