$NetBSD: patch-aa,v 1.5 2006/05/01 09:02:38 xtraeme Exp $

--- libarchive/archive.h.in.orig	2005-10-13 01:35:04.000000000 -0400
+++ libarchive/archive.h.in
@@ -36,7 +36,10 @@
  */
 
 #include <sys/types.h>  /* Linux requires this for off_t */
+#if HAVE_INTTYPES_H
 #include <inttypes.h>  /* For int64_t */
+#endif
+#include <stdlib.h>  /* For [u]intptr_t on Interix */
 #include <unistd.h>  /* For ssize_t and size_t */
 
 #ifdef __cplusplus
