[PATCH lib/libXt 1/2] Include direct.h header for _getdrives() on Win32

Jon TURNEY jon.turney at dronecode.org.uk
Thu Mar 19 07:18:31 PDT 2015


---
 src/Intrinsic.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 29bf716..343a743 100644
--- a/src/Intrinsic.c
+++ b/src/Intrinsic.c
@@ -81,6 +81,9 @@ in this Software without prior written authorization from The Open Group.
 #ifndef VMS
 #include <sys/stat.h>
 #endif /* VMS */
+#ifdef _WIN32
+#include <direct.h>            /* for _getdrives() */
+#endif
 
 #include <stdlib.h>
 
-- 
2.3.2



More information about the xorg-devel mailing list