summaryrefslogtreecommitdiff
path: root/data/srelay/bindaddr.diff
blob: a324c7da0e8dfaccbdf3da2cd2e36608ddbd0df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -r -u srelay-0.4.6/get-bind.c srelay-0.4.6+iPhone/get-bind.c
--- srelay-0.4.6/get-bind.c	2003-04-10 02:53:17.000000000 +0000
+++ srelay-0.4.6+iPhone/get-bind.c	2007-12-27 12:39:11.000000000 +0000
@@ -34,7 +34,7 @@
 
 #include "srelay.h"
 
-#if defined(FREEBSD) || defined(SOLARIS) 
+#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__)
 #include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <sys/sockio.h>
@@ -54,7 +54,7 @@
 static int get_ifconf(int, struct addrinfo *);
 #endif /* defined(LINUX) */
 
-#if defined(FREEBSD) || defined(SOLARIS) 
+#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__)
 
 #ifndef RTAX_DST
 #define RTAX_DST         0