qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] main: Hide F_GETFD and FD_CLOEXEC use for _WIN32


From: Corey Bryant
Subject: [Qemu-devel] [PATCH] main: Hide F_GETFD and FD_CLOEXEC use for _WIN32
Date: Mon, 22 Oct 2012 09:53:44 -0400

Signed-off-by: Corey Bryant <address@hidden>
---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vl.c b/vl.c
index 200d849..94c667d 100644
--- a/vl.c
+++ b/vl.c
@@ -812,11 +812,13 @@ static int parse_add_fd(QemuOpts *opts, void *opaque)
         return -1;
     }
 
+#ifndef _WIN32
     if (fcntl(fd, F_GETFD) & FD_CLOEXEC) {
         qerror_report(ERROR_CLASS_GENERIC_ERROR,
                       "fd is not valid or already in use");
         return -1;
     }
+#endif
 
     if (fdset_id < 0) {
         qerror_report(ERROR_CLASS_GENERIC_ERROR,
-- 
1.7.11.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]