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 +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) +#define HANDLE_FLAG_INHERIT 0 +#endif /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW