Commit b51eaa8218f4bd9cfd9a10b7014676035289ef56

Authored by ths
1 parent 387a8fe5

Check if the hosts defines a symlinkat syscall.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3236 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/syscall.c
... ... @@ -211,7 +211,7 @@ _syscall4(int,sys_renameat,int,olddirfd,const char *,oldpath,
211 211 int,newdirfd,const char *,newpath)
212 212 #endif
213 213 _syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo)
214   -#ifdef TARGET_NR_symlinkat
  214 +#if defined(TARGET_NR_symlinkat) && defined(__NR_symlinkat)
215 215 _syscall3(int,sys_symlinkat,const char *,oldpath,
216 216 int,newdirfd,const char *,newpath)
217 217 #endif
... ...