]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fixed compilation bug on i386 due to previous fix
authorCristian Toader <cristian.matei.toader@gmail.com>
Thu, 12 Sep 2013 12:38:14 +0000 (15:38 +0300)
committerCristian Toader <cristian.matei.toader@gmail.com>
Thu, 12 Sep 2013 12:38:14 +0000 (15:38 +0300)
src/common/sandbox.c

index db2ad1d6ff912aac07f1465af0b9478735fb6f25..b9ec99efa36c48d4a5c3f7828a28335ffea6cc8d 100644 (file)
@@ -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
 };
 
 /**