blob: 1787ebc35ca698b9bbf8b393a8a4ed4556f9d6e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-libmemcached_byteorder.cc,v 1.3 2017/10/09 07:48:52 adam Exp $
Find definition of ntohll() and htonll().
--- libmemcached/byteorder.cc.orig 2014-02-09 11:52:42.000000000 +0000
+++ libmemcached/byteorder.cc
@@ -36,6 +36,11 @@
*/
#include "mem_config.h"
+#if defined(__sun)
+# include "sys/byteorder.h"
+#elif defined(__APPLE__)
+# include "sys/_endian.h"
+#endif
#include "libmemcached/byteorder.h"
/* Byte swap a 64-bit number. */
|