From 53f35526db4b431af79350921235d33159934ca7 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 3 Mar 2015 19:12:49 +0100 Subject: [PATCH] Define SOL_IP to IPPROTO_IP for platforms that do not have it --- src/coap_io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coap_io.c b/src/coap_io.c index 8f1328a1..1f4896dd 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -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 */