this affected at least md5 which produced wrong values on 64-bit platforms
AC_DEFINE(HAVE_STRUCT_FLOCK, 0)
fi
+AC_CHECK_SIZEOF(long, 8)
+AC_CHECK_SIZEOF(int, 4)
+
dnl Check for members of the stat structure
AC_STRUCT_ST_BLKSIZE
dnl AC_STRUCT_ST_BLOCKS will screw QNX because fileblocks.o does not exists
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+#if SIZEOF_INT == 4
+typedef unsigned int UINT4;
+#elif SIZEOF_LONG == 4
+typedef unsigned long UINT4;
+#endif
/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it