From: André Hentschel Subject: qcap: Define O_CLOEXEC when needed Message-Id: <7f604e80-b358-e007-cb67-d7c7f2f2bc7c@dawncrow.de> Date: Mon, 20 Feb 2017 23:28:13 +0100 Signed-off-by: André Hentschel --- 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