$OpenBSD: patch-j2sdk1_3_1_src_share_native_java_util_zip_zlib-1_1_3_zconf_h,v 1.1 2005/08/10 22:36:27 kurt Exp $
--- j2sdk1.3.1/src/share/native/java/util/zip/zlib-1.1.3/zconf.h.orig	Sun May  6 08:20:35 2001
+++ j2sdk1.3.1/src/share/native/java/util/zip/zlib-1.1.3/zconf.h	Tue Aug  9 18:20:33 2005
@@ -8,6 +8,9 @@
 #ifndef _ZCONF_H
 #define _ZCONF_H
 
+/* for _LP64 */
+#include <sys/types.h>
+
 /*
  * If you *really* need a unique prefix for all types and library functions,
  * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
@@ -214,7 +217,11 @@
 typedef unsigned char  Byte;  /* 8 bits */
 #endif
 typedef unsigned int   uInt;  /* 16 bits or more */
+#ifdef _LP64
+typedef unsigned int  uLong; /* 32 bits or more */
+#else
 typedef unsigned long  uLong; /* 32 bits or more */
+#endif
 
 #ifdef SMALL_MEDIUM
    /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
