summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-15 10:35:45 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-15 10:37:41 -0400
commita5ed8b1667156384483c12eb4f98d511c6dd2bd3 (patch)
treea7a08eb937447910fe46714d7d11a7bff9061374 /src
parent7c3f210e709703a3ce3e36107166f67c31f4c8e1 (diff)
downloadtor-a5ed8b1667156384483c12eb4f98d511c6dd2bd3.tar.gz
tor-a5ed8b1667156384483c12eb4f98d511c6dd2bd3.zip
Fix compilation of sandbox.[ch] under musl-libc
Patch from jamestk; fix on 0.2.5.1-alpha. Fixes 17347.
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c2
-rw-r--r--src/common/sandbox.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 161eab7aad..b995762738 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -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>
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 36d25d6516..21d517fe51 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -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>