Not all platforms have the function.
Signed-off-by: Derek Buitenhuis <[email protected]>
---
libavutil/file.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/file.c b/libavutil/file.c
index add049d..9ce0dc5 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -52,8 +52,11 @@ int avpriv_open(const char *filename, int flags, ...)
#endif
fd = open(filename, flags, mode);
+#if HAVE_FCNTL
if (fd != -1)
fcntl(fd, F_SETFD, FD_CLOEXEC);
+#endif
+
return fd;
}
--
1.8.4.rc1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel