summaryrefslogtreecommitdiff
path: root/utils/fs
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-05-14 09:09:58 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-05-14 09:15:18 +0100
commit6d57a92f60761f38c7f5cdefd5c35423a7fe1d10 (patch)
tree5c23827f02ff45a9745173c5a90d9df861a4c1f2 /utils/fs
parentb7139869c3c42c778fa9eb90058439323f548ec2 (diff)
downloadhaskell-6d57a92f60761f38c7f5cdefd5c35423a7fe1d10.tar.gz
utils/fs: use <sys/stat.h>, not <sys\stat.h>
Fix cross-compilation failure from linux to windows: ``` CC utils/unlit/dist-install/build/fs.o utils/unlit/fs.c:24:10: fatal error: sys\stat.h: No such file or directory #include <sys\stat.h> ^~~~~~~~~~~~ ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'utils/fs')
-rw-r--r--utils/fs/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/fs/fs.c b/utils/fs/fs.c
index 24bf3a3632..0f8fbe707f 100644
--- a/utils/fs/fs.c
+++ b/utils/fs/fs.c
@@ -21,8 +21,8 @@
#include <io.h>
#include <fcntl.h>
#include <wchar.h>
-#include <sys\stat.h>
-#include <sys\types.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <share.h>
/* This function converts Windows paths between namespaces. More specifically