#include "libmemcached/assert.hpp"
#include <cmath>
-#include <sys/time.h>
+#if HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+#include <time.h>
/* Protoypes (static) */
static memcached_return_t update_continuum(Memcached *ptr);
ptr->state.is_parsing = true;
for (uint32_t x = 0; x < count; ++x, ++original_host_size) {
- WATCHPOINT_ASSERT(list[x].hostname[0] != 0);
+ WATCHPOINT_ASSERT(list[x].hostname[0]);
// We have extended the array, and now we will find it, and use it.
memcached_instance_st *instance = memcached_instance_fetch(ptr, original_host_size);
// We use original_host_size since size will now point to the first new
// instance allocated.
for (uint32_t x = 0; x < number_of_hosts; ++x, ++original_host_size) {
- WATCHPOINT_ASSERT(list[x]._hostname[0] != 0);
+ WATCHPOINT_ASSERT(list[x]._hostname[0]);
// We have extended the array, and now we will find it, and use it.
memcached_instance_st *instance = memcached_instance_fetch(ptr, original_host_size);