darwin: fix #90
[awesomized/libmemcached] / libmemcached / byteorder.cc
index 9f11aa84b3e27bcc2c5003c1d62856fb42ee8c10..44500add8832a8fd33ec318a874575e21a3ae623 100644 (file)
@@ -59,6 +59,9 @@ static inline uint64_t swap64(uint64_t in)
 }
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
 
 uint64_t memcached_ntohll(uint64_t value)
 {