]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
Check if the hosts defines a symlinkat syscall.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 25 Sep 2007 16:09:22 +0000 (16:09 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 25 Sep 2007 16:09:22 +0000 (16:09 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3236 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index 05f8596bc2e2b5a220765039fe05ffe50b882a76..645780e8520a19904ec8d19cf262e63c5eb93406 100644 (file)
@@ -211,7 +211,7 @@ _syscall4(int,sys_renameat,int,olddirfd,const char *,oldpath,
           int,newdirfd,const char *,newpath)
 #endif
 _syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo)
-#ifdef TARGET_NR_symlinkat
+#if defined(TARGET_NR_symlinkat) && defined(__NR_symlinkat)
 _syscall3(int,sys_symlinkat,const char *,oldpath,
           int,newdirfd,const char *,newpath)
 #endif