commit 5cf06fa4b6a3818921166c08c53e86edde8fa8a0
parent 1a5063138a7bed40f07b239b3ec833426b9150e3
Author: Evgeny Grin <k2k@drgrin.dev>
Date: Wed, 30 Apr 2025 19:29:06 +0300
mhd_read_file: fixed build with MSVC
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/mhd2/mhd_read_file.c b/src/mhd2/mhd_read_file.c
@@ -39,6 +39,7 @@
/* Native W32 */
# include <windows.h>
# include <string.h> /* for memset() */
+# include <io.h> /* for _get_osfhandle() */
#endif
/**
* Read data from the file to the provided buffer