]> granicus.if.org Git - zziplib/commitdiff
bsd/mac problem
authorGuido Draheim <guidod@gmx.de>
Fri, 28 Apr 2006 00:07:51 +0000 (00:07 +0000)
committerGuido Draheim <guidod@gmx.de>
Fri, 28 Apr 2006 00:07:51 +0000 (00:07 +0000)
 (types.h)

zzip/types.h

index f792cdbe20a404c05aa086957a1c72f056d2a0a9..c20f128daa86e26616b3275697e8e344b2ca6793 100644 (file)
@@ -24,6 +24,9 @@
 #include <zzip/conf.h>
 #include <fcntl.h>
 #include <stddef.h> /* size_t and friends */
+#ifdef ZZIP_HAVE_SYS_TYPES_H
+#include <sys/types.h> /* bsd (mac) has size_t here */
+#endif
 /* msvc6 has neither ssize_t (we assume "int") nor off_t (assume "long") */
 
 typedef unsigned char zzip_byte_t; // especially zlib decoding data