[PATCH] Fix include path separator
Joshua Watt
JPEW.hacker@gmail.com
Tue Jan 1 00:00:00 GMT 2019
Changes the include path separator for Windows builds to use "/" instead
of "\". Windows has no problems with using a forward slash as a path
separator, but using a backslash causes problems when attempting to
cross compile for other platforms (for example, when trying to cross
compile for MinGW from Linux).
---
bzip2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bzip2.c b/bzip2.c
index e362c65..be3b3be 100644
--- a/bzip2.c
+++ b/bzip2.c
@@ -128,7 +128,7 @@
#if BZ_LCCWIN32
# include <io.h>
# include <fcntl.h>
-# include <sys\stat.h>
+# include <sys/stat.h>
# define NORETURN /**/
# define PATH_SEP '\\'
--
2.21.0
More information about the Bzip2-devel
mailing list