projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ci: gh-action fetch tags
[awesomized/libmemcached]
/
src
/
libmemcached
/
byteorder.cc
diff --git
a/src/libmemcached/byteorder.cc
b/src/libmemcached/byteorder.cc
index 1bfe12b9a5bc0a20c8055ed243c36db059b7c438..6263a358aa351a1391f2a1088fabfe25541354a0 100644
(file)
--- a/
src/libmemcached/byteorder.cc
+++ b/
src/libmemcached/byteorder.cc
@@
-14,6
+14,11
@@
*/
#include "mem_config.h"
*/
#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. */
#include "libmemcached/byteorder.h"
/* Byte swap a 64-bit number. */
@@
-37,9
+42,7
@@
static inline uint64_t swap64(uint64_t in) {
# endif
#endif
# 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
uint64_t memcached_ntohll(uint64_t value) {
#ifdef HAVE_HTONLL