change license header library name to libmemcached-awesome
[awesomized/libmemcached] / src / libmemcached / byteorder.cc
index 1bfe12b9a5bc0a20c8055ed243c36db059b7c438..d20b37ef4a0697681f63dcbb166f2ba4c9cf20a8 100644 (file)
@@ -1,6 +1,6 @@
 /*
     +--------------------------------------------------------------------+
-    | libmemcached - C/C++ Client Library for memcached                  |
+    | libmemcached-awesome - C/C++ Client Library for memcached          |
     +--------------------------------------------------------------------+
     | Redistribution and use in source and binary forms, with or without |
     | modification, are permitted under the terms of the BSD license.    |
@@ -9,11 +9,16 @@
     | the terms online at: https://opensource.org/licenses/BSD-3-Clause  |
     +--------------------------------------------------------------------+
     | Copyright (c) 2006-2014 Brian Aker   https://datadifferential.com/ |
-    | Copyright (c) 2020 Michael Wallner   <mike@php.net>                |
+    | Copyright (c) 2020-2021 Michael Wallner        https://awesome.co/ |
     +--------------------------------------------------------------------+
 */
 
 #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