aboutsummaryrefslogtreecommitdiff
path: root/archivers/libcabinet
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-05 10:16:46 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-05 10:16:46 +0000
commit65348be49e26db8754bc832cdcfcde4770d48d31 (patch)
tree85fe85e3ad91422313774ba3a0c77d4c3696c83a /archivers/libcabinet
parentff52c6f14a3ea815dca9f34f0093377d75af5e18 (diff)
downloadports-65348be49e26db8754bc832cdcfcde4770d48d31.tar.gz
ports-65348be49e26db8754bc832cdcfcde4770d48d31.zip
Notes
Diffstat (limited to 'archivers/libcabinet')
-rw-r--r--archivers/libcabinet/files/patch-cftypes.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/archivers/libcabinet/files/patch-cftypes.cpp b/archivers/libcabinet/files/patch-cftypes.cpp
index c39330eb96fa..3b5bbdb861cd 100644
--- a/archivers/libcabinet/files/patch-cftypes.cpp
+++ b/archivers/libcabinet/files/patch-cftypes.cpp
@@ -1,10 +1,16 @@
---- cftypes.cpp.orig Sat Oct 23 23:13:29 1999
-+++ cftypes.cpp Sun Aug 31 06:07:25 2003
-@@ -10,7 +10,15 @@
+--- cftypes.cpp.orig Sun Oct 24 08:13:29 1999
++++ cftypes.cpp Wed Sep 3 14:24:13 2003
+@@ -10,11 +10,20 @@
#ifndef __CFTYPES_CPP__
#define __CFTYPES_CPP__
-#include <values.h>
++#include <inttypes.h>
++#include <limits.h>
+ #include <fstream.h>
+ #include "zlib.h"
+ #include "cftypes.h"
+
+#ifndef MAXSHORT
+#define BITSPERBYTE 8
+#define BITS(type) (BITSPERBYTE * (int)sizeof(type))
@@ -13,11 +19,10 @@
+#define MAXSHORT ((int16_t)~MINSHORT)
+#endif
+
-+#include <limits.h>
- #include <fstream.h>
- #include "zlib.h"
- #include "cftypes.h"
-@@ -138,15 +146,20 @@
+ /******************************************************************************/
+
+ int convert_z_error_code(int code)
+@@ -138,15 +147,20 @@
int io_read(istream& in, byte* buf, word len)
{
@@ -43,7 +48,7 @@
? (in.fail()) ? READ_ERROR : UNEXPECTED_EOF : OK;
}
-@@ -154,14 +167,19 @@
+@@ -154,14 +168,19 @@
int io_write(ostream& out, const byte* buf, word len)
{