aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-09-12 15:38:14 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-09-12 15:38:14 +0300
commit7cf1b9cc33ab2ba13d84e08105699dd1f39dae1d (patch)
tree5a85f73351c27669f208654fac20e84a5a6701d3 /src
parentd2836c8780373eff011ba42620d5ab48f342cf78 (diff)
downloadtor-7cf1b9cc33ab2ba13d84e08105699dd1f39dae1d.tar
tor-7cf1b9cc33ab2ba13d84e08105699dd1f39dae1d.tar.gz
fixed compilation bug on i386 due to previous fix
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index db2ad1d6f..b9ec99efa 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -125,6 +125,15 @@ static int filter_nopar_gen[] = {
SCMP_SYS(stat64),
#endif
+ /*
+ * These socket syscalls are not required on x86_64 and not supported with
+ * some libseccomp versions (eg: 1.0.1)
+ */
+#if defined(__i386)
+ SCMP_SYS(recv),
+ SCMP_SYS(send),
+#endif
+
// socket syscalls
SCMP_SYS(bind),
SCMP_SYS(connect),
@@ -133,15 +142,6 @@ static int filter_nopar_gen[] = {
SCMP_SYS(recvfrom),
SCMP_SYS(sendto),
SCMP_SYS(unlink)
-
- /*
- * These syscalls are not required on x86_64 and not supported with
- * some libseccomp versions (eg: 1.0.1)
- */
-#if defined(__i386)
- SCMP_SYS(recv),
- SCMP_SYS(send),
-#endif
};
/**