Define SOL_IP to IPPROTO_IP for platforms that do not have it

This commit is contained in:
Olaf Bergmann committed 2015-03-03 19:21:44 +01:00
1 parent 0af74b7cd6
commit 53f35526db
1 file changed
+5
+5
View File
@@ -215,6 +215,11 @@ struct in_pktinfo {
};
#endif
#if defined(WITH_POSIX) && !defined(SOL_IP)
/* Solaris expects level IPPROTO_IP for ancillary data. */
#define SOL_IP IPPROTO_IP
#endif
#ifdef __GNUC__
#define UNUSED_PARAM __attribute__ ((unused))
#else /* not a GCC */