mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Define SOL_IP to IPPROTO_IP for platforms that do not have it
This commit is contained in:
1 parent
0af74b7cd6
commit
53f35526db
1 file changed
+5
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user