#if HAVE_STRINGS_H
# include <strings.h>
#endif
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
-#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#define uint32 unsigned int32
#endif
-#if SIZEOF_OFF64_T
+#if SIZEOF_OFF64_T && HAVE_STRUCT_STAT64
#define OFF_T off64_t
#define STRUCT_STAT struct stat64
#else