From clang 3.9.0 I'm getting this warning about ipfilter's SOLARIS
macro:
In file included from ioctl.c:82: /usr/obj/usr/src/tmp/usr/include/netinet/ip_fil.h:1080:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined] # if SOLARIS ^ /usr/obj/usr/src/tmp/usr/include/netinet/ip_compat.h:35:18: note: expanded from macro 'SOLARIS' #define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) ^
This can easily be done in a defined and portable way.