openbsd-ports/archivers/unarj/patches/patch-unarj_h

17 lines
503 B
Plaintext
Raw Normal View History

1999-03-03 22:49:12 -05:00
--- unarj.h.orig Mon Sep 29 06:00:24 1997
+++ unarj.h Wed Mar 3 22:24:35 1999
@@ -106,9 +106,11 @@
#endif
typedef unsigned char uchar; /* 8 bits or more */
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
typedef unsigned int uint; /* 16 - 32 bits or more */
-typedef unsigned short ushort; /* 16 bits or more */
-typedef unsigned long ulong; /* 32 bits or more */
+#else
+#include <sys/types.h>
+#endif
#define USHRT_BIT (CHAR_BIT * sizeof(ushort))