summaryrefslogtreecommitdiff
path: root/archivers/unarj/patches/patch-aa
blob: f02d3ab4f0235a26c99da5dcc7c477986d62e494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aa,v 1.7 2014/06/26 20:12:43 asau Exp $

--- unarj.h.orig	2002-06-05 10:28:06.000000000 +0000
+++ unarj.h
@@ -106,9 +106,16 @@
 #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>
+#if defined(__FreeBSD__) && __FreeBSD__ >= 10
+typedef unsigned long  ulong;   /* 32 bits or more */
+#endif
+#endif
 
 #define USHRT_BIT   (CHAR_BIT * sizeof(ushort))