[commit: ghc] master: utils/fs: use <sys/stat.h>, not <sys\stat.h> (6d57a92)
git at git.haskell.org
git at git.haskell.org
Mon May 14 08:16:45 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6d57a92f60761f38c7f5cdefd5c35423a7fe1d10/ghc
>---------------------------------------------------------------
commit 6d57a92f60761f38c7f5cdefd5c35423a7fe1d10
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date: Mon May 14 09:09:58 2018 +0100
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 at gentoo.org>
>---------------------------------------------------------------
6d57a92f60761f38c7f5cdefd5c35423a7fe1d10
utils/fs/fs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/fs/fs.c b/utils/fs/fs.c
index 24bf3a3..0f8fbe7 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
More information about the ghc-commits
mailing list