]> git.proxmox.com Git - qemu.git/commitdiff
F_DUPFD_CLOEXEC is not universally available
authormalc <av1474@comtv.ru>
Sun, 6 Sep 2009 02:31:59 +0000 (06:31 +0400)
committermalc <av1474@comtv.ru>
Thu, 10 Sep 2009 16:27:36 +0000 (20:27 +0400)
The same issue (and the same patch to the byte) was experienced/proposed
by Vince Weaver.

Signed-off-by: malc <av1474@comtv.ru>
linux-user/syscall.c

index 25b95ea05a9aba3840fb15203424cc30ca290a47..b42567c3d15d7c10c90b8af5eaf01cc034113cae 100644 (file)
@@ -3685,8 +3685,10 @@ static int target_to_host_fcntl_cmd(int cmd)
             return F_SETLEASE;
         case TARGET_F_GETLEASE:
             return F_GETLEASE;
+#ifdef F_DUPFD_CLOEXEC
         case TARGET_F_DUPFD_CLOEXEC:
             return F_DUPFD_CLOEXEC;
+#endif
         case TARGET_F_NOTIFY:
             return F_NOTIFY;
        default: