linux-user: fix warnings introduced by r7118
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 17:12:01 +0000 (17:12 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 17:12:01 +0000 (17:12 +0000)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7120 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index 9d7650a..74b41a8 100644 (file)
@@ -314,7 +314,7 @@ static int sys_fchmodat(int dirfd, const char *pathname, mode_t mode, int flags)
   return (fchmodat(dirfd, pathname, mode, flags));
 }
 #endif
-#ifdef TARGET_NR_fchownat
+#if defined(TARGET_NR_fchownat) && defined(USE_UID16)
 static int sys_fchownat(int dirfd, const char *pathname, uid_t owner,
     gid_t group, int flags)
 {