From 1d82932ccebd562a3edb85581c93d89d5c904b26 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Wed, 3 Jun 2026 22:22:21 -0400 Subject: [PATCH] various: use fopen wrapper for cloexec handling --- audio/out/ao_pcm.c | 1 + osdep/path-unix.c | 1 + stream/stream_bluray.c | 1 + stream/stream_dvb.c | 1 + test/test_utils.c | 1 + 5 files changed, 5 insertions(+) diff --git a/audio/out/ao_pcm.c b/audio/out/ao_pcm.c index ce55e70f03..585b1ef3ce 100644 --- a/audio/out/ao_pcm.c +++ b/audio/out/ao_pcm.c @@ -34,6 +34,7 @@ #include "internal.h" #include "common/msg.h" #include "osdep/endian.h" +#include "osdep/io.h" #ifdef _WIN32 // for GetFileType to detect pipes diff --git a/osdep/path-unix.c b/osdep/path-unix.c index dd566a4234..ac131e4503 100644 --- a/osdep/path-unix.c +++ b/osdep/path-unix.c @@ -19,6 +19,7 @@ #include "misc/bstr.h" #include "options/path.h" +#include "osdep/io.h" #include "osdep/threads.h" #include "path.h" diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index 42a27b5253..ef048afd1f 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -45,6 +45,7 @@ #include "options/options.h" #include "options/path.h" #include "stream.h" +#include "osdep/io.h" #include "osdep/timer.h" #include "sub/osd.h" #include "sub/img_convert.h" diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index f9c33aaf87..72a836636c 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -53,6 +53,7 @@ #include "options/m_option.h" #include "options/options.h" #include "options/path.h" +#include "osdep/io.h" #include "osdep/poll_wrapper.h" #include "osdep/threads.h" diff --git a/test/test_utils.c b/test/test_utils.c index e95295779c..923efd94bc 100644 --- a/test/test_utils.c +++ b/test/test_utils.c @@ -3,6 +3,7 @@ #include "common/msg.h" #include "options/m_option.h" #include "options/path.h" +#include "osdep/io.h" #include "osdep/subprocess.h" #include "osdep/terminal.h" #include "test_utils.h"