]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation of sandbox.[ch] under musl-libc
authorNick Mathewson <nickm@torproject.org>
Thu, 15 Oct 2015 14:35:45 +0000 (10:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Oct 2015 14:35:45 +0000 (10:35 -0400)
Patch from jamestk; fix on 0.2.5.1-alpha. Fixes 17347.

changes/bug17347 [new file with mode: 0644]
src/common/sandbox.c
src/common/sandbox.h

diff --git a/changes/bug17347 b/changes/bug17347
new file mode 100644 (file)
index 0000000..487b132
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (compilation):
+    - Fix compilation of sandbox.c with musl-libc.
+      Fixes bug 17347; bugfix on 0.2.5.1-alpha.
+      Patch from 'jamestk'.
index 161eab7aad89ebaad182c13b4ff8f7184fc52829..b995762738ae7719a35ff4f07af98c3c4cddd477 100644 (file)
@@ -48,7 +48,7 @@
 #include <sys/epoll.h>
 #include <sys/prctl.h>
 #include <linux/futex.h>
-#include <bits/signum.h>
+#include <sys/file.h>
 
 #include <stdarg.h>
 #include <seccomp.h>
index 36d25d65162d11b249dd843d2de383d1ff38e812..21d517fe519471084c6c57ec7fcea73ad590059a 100644 (file)
@@ -42,6 +42,9 @@ typedef struct sandbox_cfg_elem sandbox_cfg_t;
 #ifndef __USE_GNU
 #define __USE_GNU
 #endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 #include <sys/ucontext.h>
 #include <seccomp.h>
 #include <netdb.h>