]> sourceware.org Git - bzip2.git/commitdiff
Fix include path separator
authorJoshua Watt <JPEW.hacker@gmail.com>
Tue, 2 Jul 2019 20:05:44 +0000 (15:05 -0500)
committerMark Wielaard <mark@klomp.org>
Thu, 4 Jul 2019 22:13:11 +0000 (00:13 +0200)
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

diff --git a/bzip2.c b/bzip2.c
index e362c6506950414d3546ee221909a5c116451f80..be3b3be402968b69d3e400017edeb1b9b0abbb07 100644 (file)
--- a/bzip2.c
+++ b/bzip2.c
 #if BZ_LCCWIN32
 #   include <io.h>
 #   include <fcntl.h>
-#   include <sys\stat.h>
+#   include <sys/stat.h>
 
 #   define NORETURN       /**/
 #   define PATH_SEP       '\\'
This page took 0.027954 seconds and 5 git commands to generate.