r1106: Lars Mueller <lmuelle@suse.de> asked me to apply this patch, as this is needed
authorVolker Lendecke <vlendec@samba.org>
Thu, 10 Jun 2004 17:13:30 +0000 (17:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:55 +0000 (10:51 -0500)
for their build environment. The AFS stuff is linux 2.4 only currently, it
works for me on this platform, so apply it.

Volker
(This used to be commit 69e8c65f1f0cb0c5237bb3b2560cd6f936503eb7)

source3/lib/afs_settoken.c

index eb10c4c66d45416f592a8a1fb5cb4791538d7162..5c646c72e48028cc59a022d8658d4049b95b1ac6 100644 (file)
 #include <afs/venus.h>
 #include <asm/unistd.h>
 #include <openssl/des.h>
+#include <sys/syscall.h>
 
-_syscall5(int, afs_syscall, int, subcall,
-         char *, path,
-         int, cmd,
-         char *, cmarg,
-         int, follow);
+int afs_syscall( int subcall,
+         char * path,
+         int cmd,
+         char * cmarg,
+         int follow)
+{
+       return( syscall( SYS_afs_syscall, subcall, path, cmd, cmarg, follow));
+}
 
 struct ClearToken {
        uint32 AuthHandle;