pkgsrc - initial commit
[pkgsrc.git] / archivers / zoo / patches / patch-aa
1 $NetBSD: patch-aa,v 1.5 2009/04/25 23:46:47 gdt Exp $
2
3 --- ar.h.orig   1993-05-01 06:04:22.000000000 +0200
4 +++ ar.h
5 @@ -15,11 +15,15 @@ Adapted from "ar" archiver written by Ha
6  /* uchar should be 8 bits or more */
7  /* typedef unsigned char  uchar;   -- already in zoo.h */
8  
9 +#if !(defined(__FreeBSD__) && __FreeBSD__ < 3) && !defined(__OpenBSD__) && !defined(__NetBSD__)
10  typedef unsigned int   uint;    /* 16 bits or more */
11  #if !defined(__386BSD__) || !defined(_TYPES_H_)
12  typedef unsigned short ushort;  /* 16 bits or more */
13  #endif
14  typedef unsigned long  ulong;   /* 32 bits or more */
15 +#else
16 +# include <sys/types.h>
17 +#endif
18  
19  /* T_UINT16 must be #defined in options.h to be 
20  a 16-bit unsigned integer type */