summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-04-14 12:19:07 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-04-14 12:19:07 +0100
commitaf9c277491c9bdc37a6fc5ae5a6c6ca190bfa56c (patch)
treeeeeacaf590546ac3d50f001db22378dd45d93d4d
parente7094ceaf95a15eae73819d0ffdb9b982075e0d2 (diff)
Include direct.h header for _getdrives() on Win32
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--src/Intrinsic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 29bf716..7119b09 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>