]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix for OSX Lion
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Mar 2012 10:24:53 +0000 (11:24 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 Mar 2012 10:24:53 +0000 (11:24 +0100)
src/lib/udpfromto.c

index bfb2a3a6b70641729242fd64baada271b55b7aa3..a3186d4e889cbb5f55a2484a5162aaa45b743f9d 100644 (file)
@@ -48,6 +48,14 @@ RCSID("$Id$")
 
 #include <fcntl.h>
 
+/*
+ *     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 >=