*/
#include "mem_config.h"
+
+#if HAVE_HTONLL && HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
#include "libmemcached/byteorder.h"
/* Byte swap a 64-bit number. */
# endif
#endif
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
uint64_t memcached_ntohll(uint64_t value) {
#ifdef HAVE_HTONLL