summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-06 06:31:59 +0400
committermalc <av1474@comtv.ru>2009-09-10 20:27:36 +0400
commitfbd5de9b69fafd9e6421772fb54e464121ffa3ac (patch)
treed01313b2558d50aacdd895bcb587b67e2c85a07c /linux-user/syscall.c
parent720036a5bb1d6f7b491da5a37a30b3e7e11147e0 (diff)
downloadfocaccia-qemu-fbd5de9b69fafd9e6421772fb54e464121ffa3ac.tar.gz
focaccia-qemu-fbd5de9b69fafd9e6421772fb54e464121ffa3ac.zip
F_DUPFD_CLOEXEC is not universally available
The same issue (and the same patch to the byte) was experienced/proposed
by Vince Weaver.

Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 25b95ea05a..b42567c3d1 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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: