From fbd5de9b69fafd9e6421772fb54e464121ffa3ac Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 6 Sep 2009 06:31:59 +0400 Subject: [PATCH] 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 --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.11.0