summaryrefslogtreecommitdiff
path: root/archivers/unarj/patches/patch-aa
blob: 74e991712730292f32373cc9d02ea2e93b7f3c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aa,v 1.5 1999/02/10 14:53:34 frueauf Exp $

--- unarj.h.orig	Wed Jun 23 06:07:20 1993
+++ unarj.h	Wed Jan 21 15:03:39 1998
@@ -104,9 +104,13 @@
 #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))