pkgsrc/devel/chmlib/patches/patch-aa
minskim 1dbc1bf893 Update chmlib to 0.36. This version includes two security fixes.
Changes:
    - Major security fix (iDEFENSE Security Advisory IDEF1099 - Stack Overflow
      Vulnerability)
    - Major security fix from Palasik Sandor (LZX decompression buffer overrun)
    - Bugfix/enhancement from David Huseby to make the "what" flags to
      chm_enumerate work correctly, and to pass the flags along to the callback
      function (via the chmUnitInfo structure) so that the callback doesn't
      need to re-parse the filename.
    - Compilation fixes for x86-64 from Vitaly V. Bursov.
    - Miscellaneous fixes to the configure script, including some significant
      cleanup by Vadim Zeitlin.  The changes from Vadim should also allow the
      configure script to correctly configure the build on OS X, where it was
      previously failing to note that pread64 doesn't work.
    - Minor update to the Makefile.in to do a mkdir before the install, in case
      the specified INSTALLPREFIX directory is non-existent
2005-09-12 14:49:10 +00:00

21 lines
655 B
Text

$NetBSD: patch-aa,v 1.5 2005/09/12 14:49:10 minskim Exp $
--- src/chm_lib.c.orig 2005-09-09 05:42:27.000000000 -0700
+++ src/chm_lib.c
@@ -182,8 +182,14 @@ typedef unsigned long UInt64;
#else
-/* yielding an error is preferable to yielding incorrect behavior */
-#error "Please define the sized types for your platform in chm_lib.c"
+typedef unsigned char UChar;
+typedef int16_t Int16;
+typedef u_int16_t UInt16;
+typedef int32_t Int32;
+typedef u_int32_t UInt32;
+typedef int64_t Int64;
+typedef u_int64_t UInt64;
+
#endif
/* GCC */