aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fakeroot/patches/600-macOS.patch
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-02-24 20:50:36 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-03-01 00:08:08 +0100
commit40f91f6a2f633d2fbca13aa7ad6e5be1e79f5aa6 (patch)
tree13f9a0658696e35c10a3e4f1586d7d4fe101f8f9 /tools/fakeroot/patches/600-macOS.patch
parent4e13229dd19e90975af9a51b4bc888477fbfad5e (diff)
downloadupstream-40f91f6a2f633d2fbca13aa7ad6e5be1e79f5aa6.tar.gz
upstream-40f91f6a2f633d2fbca13aa7ad6e5be1e79f5aa6.tar.bz2
upstream-40f91f6a2f633d2fbca13aa7ad6e5be1e79f5aa6.zip
tools/fakeroot: update to 1.27
Remove macOS stuff. Upstream has fixed it in the same way. Add SOL_TCP define. Taken from elsewhere in the code. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/fakeroot/patches/600-macOS.patch')
-rw-r--r--tools/fakeroot/patches/600-macOS.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/fakeroot/patches/600-macOS.patch b/tools/fakeroot/patches/600-macOS.patch
new file mode 100644
index 0000000000..59e668eb9a
--- /dev/null
+++ b/tools/fakeroot/patches/600-macOS.patch
@@ -0,0 +1,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 } };