summaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-ar.h
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2011-12-22 13:12:22 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2011-12-22 13:12:22 +0000
commit2aff69237c3bb2d6fea638a6a4ece1592fc0db27 (patch)
tree8d979d43d22799a313b87e997e83036b073c8179 /archivers/zoo/files/patch-ar.h
parent- Update to Build 21, see PR for list of upstream fixes (diff)
- Patch zoo to work properly when modifying existing archives on 64-bit
systems - Bump PORTREVISION PR: ports/162804 Submitted by: Carl Johnson <carlj@peak.org>
Notes
Notes: svn path=/head/; revision=287863
Diffstat (limited to 'archivers/zoo/files/patch-ar.h')
-rw-r--r--archivers/zoo/files/patch-ar.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-ar.h b/archivers/zoo/files/patch-ar.h
new file mode 100644
index 000000000000..fbc3ec644a2d
--- /dev/null
+++ b/archivers/zoo/files/patch-ar.h
@@ -0,0 +1,15 @@
+--- ./ar.h.orig 1993-05-01 06:04:22.000000000 +0200
++++ ./ar.h 2011-12-22 14:00:55.000000000 +0100
+@@ -15,10 +15,12 @@
+ /* uchar should be 8 bits or more */
+ /* typedef unsigned char uchar; -- already in zoo.h */
+
++#if !(defined(__FreeBSD__) && __FreeBSD__ < 3) && !defined(__OpenBSD__) && !defined(__NetBSD__)
+ typedef unsigned int uint; /* 16 bits or more */
+ #if !defined(__386BSD__) || !defined(_TYPES_H_)
+ typedef unsigned short ushort; /* 16 bits or more */
+ #endif
++#endif
+ typedef unsigned long ulong; /* 32 bits or more */
+
+ /* T_UINT16 must be #defined in options.h to be