Sophie

Sophie

distrib > Arklinux > devel > x86_64 > by-pkgid > 3700723bcdf789119a33326b09b763b6 > files > 2

vsftpd-2.3.4-1ark.src.rpm

--- vsftpd-2.1.1/sysdeputil.c.ark	2009-05-28 12:29:52.416912939 +0200
+++ vsftpd-2.1.1/sysdeputil.c	2009-05-28 12:32:41.414924093 +0200
@@ -15,6 +15,8 @@
 #include "defs.h"
 #include "tunables.h"
 #include "builddefs.h"
+#include <syscall.h>
+#include <errno.h>
 
 /* For Linux, this adds nothing :-) */
 #include "port/porting_junk.h"
@@ -1240,7 +1242,7 @@ vsf_sysutil_fork_isolate_failok()
   static int cloneflags_work = 1;
   if (cloneflags_work)
   {
-    int ret = syscall(__NR_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
+    int ret = syscall(SYS_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL);
     if (ret != -1 || errno != EINVAL)
     {
       vsf_sysutil_clear_pid_cache();