From: Alan T. DeKok Date: Mon, 5 Mar 2012 10:24:53 +0000 (+0100) Subject: Fix for OSX Lion X-Git-Tag: release_2_2_0~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd3d8b2683a96ab6750c118003abaa8ecf55a07b;p=thirdparty%2Ffreeradius-server.git Fix for OSX Lion --- diff --git a/src/lib/udpfromto.c b/src/lib/udpfromto.c index bfb2a3a6b70..a3186d4e889 100644 --- a/src/lib/udpfromto.c +++ b/src/lib/udpfromto.c @@ -48,6 +48,14 @@ RCSID("$Id$") #include +/* + * More portability idiocy + * Mac OSX Lion doesn't define SOL_IP. But IPPROTO_IP works. + */ +#ifndef SOL_IP +#define SOL_IP IPPROTO_IP +#endif + /* * glibc 2.4 and uClibc 0.9.29 introduce IPV6_RECVPKTINFO etc. and * change IPV6_PKTINFO This is only supported in Linux kernel >=