]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make sandbox.c compile when libseccomp-dev is installed on arm64
authorNick Mathewson <nickm@torproject.org>
Wed, 13 Dec 2017 00:46:03 +0000 (19:46 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 Dec 2017 00:46:03 +0000 (19:46 -0500)
Fixes ticket 24424.  Patch from weasel.

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

diff --git a/changes/bug24424 b/changes/bug24424
new file mode 100644 (file)
index 0000000..63c2d39
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor features (portability):
+    - Tor now compiles correctly on arm64 with libseccomp-dev installed.
+      (It doesn't yet work with the sandbox enabled.) Closes ticket 24424.
index ba6c3efb9e8821406133ae55e7a1e6bb188f590e..8827370c247c1d47c0b78c6c31416facbda48d0e 100644 (file)
 
 #define M_SYSCALL arm_r7
 
+#elif defined(__aarch64__) && defined(__LP64__)
+
+#define REG_SYSCALL 8
+#define M_SYSCALL regs[REG_SYSCALL]
+
 #endif /* defined(__i386__) || ... */
 
 /**Determines if at least one sandbox is active.*/