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
This commit is contained in:
Dimitry Andric 2016-08-28 11:51:46 +00:00
parent 03878a296d
commit 9abfdf4ac8

View file

@ -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)