Files
harbour-core/harbour/external/bzip2/bzip2.dif
Viktor Szakats ad7229c78a 2010-03-15 21:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* external/bzip2/Makefile
  * external/bzip2/bzip2.dif
  * external/bzip2/bzip2.c
    + Added patch to make it compile on dos and os2/watcom.
      Thanks to Przemek.
2010-03-15 20:32:35 +00:00

22 lines
564 B
Plaintext

--- ori_src\bzip2.c Sun Dec 09 04:22:12 2007
+++ bzip2.c Mon Mar 15 21:30:03 2010
@@ -34,7 +34,8 @@
--*/
#define BZ_LCCWIN32 0
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if ( defined(_WIN32) && !defined(__CYGWIN__) ) || \
+ ( defined(__WATCOMC__) && ( defined(__OS2__) || defined(__DOS__) ) )
#undef BZ_LCCWIN32
#define BZ_LCCWIN32 1
#undef BZ_UNIX
@@ -128,7 +129,7 @@
#if BZ_LCCWIN32
# include <io.h>
# include <fcntl.h>
-# include <sys\stat.h>
+# include <sys/stat.h>
# define NORETURN /**/
# define PATH_SEP '\\'