patch-unarj_h 566 B

123456789101112131415161718
  1. $OpenBSD: patch-unarj_h,v 1.2 2011/11/04 10:00:19 jasper Exp $
  2. --- unarj.h.orig Mon Sep 29 06:00:24 1997
  3. +++ unarj.h Wed Mar 3 22:24:35 1999
  4. @@ -106,9 +106,11 @@
  5. #endif
  6. typedef unsigned char uchar; /* 8 bits or more */
  7. +#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
  8. typedef unsigned int uint; /* 16 - 32 bits or more */
  9. -typedef unsigned short ushort; /* 16 bits or more */
  10. -typedef unsigned long ulong; /* 32 bits or more */
  11. +#else
  12. +#include <sys/types.h>
  13. +#endif
  14. #define USHRT_BIT (CHAR_BIT * sizeof(ushort))