qcap: Define O_CLOEXEC when needed
André Hentschel
nerv at dawncrow.de
Mon Feb 20 16:28:13 CST 2017
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
https://bugs.winehq.org/show_bug.cgi?id=42478
dlls/qcap/v4l.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index d67df73..19c6f2e 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -71,6 +71,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(qcap_v4l);
#ifdef VIDIOCMCAPTURE
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 2000000
+#endif
+
static typeof(open) *video_open = open;
static typeof(close) *video_close = close;
static typeof(ioctl) *video_ioctl = ioctl;
--
2.7.4
More information about the wine-patches
mailing list