[libxml2] Add windows includes to xmlIO.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Add windows includes to xmlIO.c
- Date: Thu, 31 Mar 2022 01:16:56 +0000 (UTC)
commit b7b29df9c29a2c18e91173ec1c3447b88f771e89
Author: Joey Arhar <jarhar chromium org>
Date: Tue Mar 29 16:07:51 2022 -0700
Add windows includes to xmlIO.c
xmlIO.c calls read() and getcwd() which need io.h and direct.h
respectively when compiling on windows. Otherwise, a compiler error may
be raised saying that read() and getcwd() were used implicitly.
This was regressed recently, I'm guessing it was due to the changes to
win32config.h in commit 84085a26
xmlIO.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/xmlIO.c b/xmlIO.c
index 172044a5..4d754735 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -37,6 +37,8 @@
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <io.h>
+#include <direct.h>
#endif
#ifndef S_ISDIR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]