aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-25 16:09:22 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-25 16:09:22 +0000
commitb51eaa8218f4bd9cfd9a10b7014676035289ef56 (patch)
treec703791f1c3f60e5deac8aa1d7d9d87c1f052fd4 /linux-user/syscall.c
parent387a8fe505dd733968a798c9d3b88fbdd5f93056 (diff)
Check if the hosts defines a symlinkat syscall.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3236 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 05f8596bc2..645780e852 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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