summaryrefslogtreecommitdiffstats
path: root/tools/fakeroot/patches/600-macOS.patch
blob: 59e668eb9abd7940389c991e166f2109cd45585b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/communicate.c
+++ b/communicate.c
@@ -441,6 +441,10 @@ void semaphore_down(){
 
 #else /* FAKEROOT_FAKENET */
 
+#ifndef SOL_TCP
+# define SOL_TCP 6 /* this should probably be done with getprotoent */
+#endif
+
 static struct sockaddr *get_addr(void)
 {
   static struct sockaddr_in addr = { 0, 0, { 0 } };