ci: gh-action fetch tags
[awesomized/libmemcached] / src / libmemcached / byteorder.cc
index 1bfe12b9a5bc0a20c8055ed243c36db059b7c438..6263a358aa351a1391f2a1088fabfe25541354a0 100644 (file)
 */
 
 #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. */
@@ -37,9 +42,7 @@ static inline uint64_t swap64(uint64_t in) {
 #  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