zeek/auxil/vcpkg/ports/libiconv/0002-Config-for-MSVC.patch
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

15 lines
413 B
Diff

diff --git a/srclib/fcntl.c b/srclib/fcntl.c
index f9753c4..02fc8be 100644
--- a/srclib/fcntl.c
+++ b/srclib/fcntl.c
@@ -37,6 +37,9 @@
/* Get declarations of the native Windows API functions. */
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
+#define HANDLE_FLAG_INHERIT 0
+#endif
/* Get _get_osfhandle. */
# if GNULIB_MSVC_NOTHROW