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.
This commit is contained in:
Viktor Szakats
2010-03-15 20:32:35 +00:00
parent 6fb5b677b4
commit ad7229c78a
4 changed files with 22 additions and 4 deletions

View File

@@ -17,6 +17,13 @@
past entries belonging to author(s): Viktor Szakats.
*/
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 16:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ external/bzip2/bzip2.dif
+ Added .dif file.

View File

@@ -24,7 +24,7 @@ C_SOURCES := \
_DET_DSP_NAME := bzip2
_DET_VAR_INC_ := HB_INC_BZIP2
_DET_VAR_HAS_ := HB_HAS_BZIP2
_DET_FLT_PLAT := !dos !os2 !wce
_DET_FLT_PLAT := !wce
_DET_FLT_COMP :=
_DET_INC_DEFP := /usr/include
_DET_INC_LOCL := $(realpath $(TOP)$(ROOT)external/bzip2)

View File

@@ -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

View File

@@ -1,6 +1,16 @@
--- ori_src\bzip2.c Sun Dec 09 04:22:12 2007
+++ bzip2.c Mon Mar 15 12:37:04 2010
@@ -128,7 +128,7 @@
+++ 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>