projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd49cf2
)
Fix for OSX Lion
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 5 Mar 2012 10:24:53 +0000
(11:24 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 5 Mar 2012 10:25:27 +0000
(11:25 +0100)
src/lib/udpfromto.c
patch
|
blob
|
history
diff --git
a/src/lib/udpfromto.c
b/src/lib/udpfromto.c
index
bfb2a3a
..
a3186d4
100644
(file)
--- a/
src/lib/udpfromto.c
+++ b/
src/lib/udpfromto.c
@@
-49,6
+49,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 >=
* 2.6.14