Comment 15 for bug 1245562

Revision history for this message
Sean Burke (sburke) wrote :

Umm, not quite. I think we just want:

- if (opt_servers == false)
+ if (opt_servers == NULL)

Also, while I don't find fault with the patch to byteorder.cc,
there is a more straightforward fix. The compilation error
arises because HAVE_HTONLL is defined, but sys/types.h
has not been included:

diff --git a/src/libmemcached/libmemcached/byteorder.cc b/src/libmemcached/libmemcached/byteorder.cc
index 9f11aa8..cc5ff42 100644
--- a/src/libmemcached/libmemcached/byteorder.cc
+++ b/src/libmemcached/libmemcached/byteorder.cc
@@ -38,6 +38,10 @@
 #include "mem_config.h"
 #include "libmemcached/byteorder.h"

+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif