Sensei reported a bug with assert.h being included multiple times. Occurs on
[awesomized/libmemcached] / libmemcached / memcached_connect.c
index ab4b84f0936d588cac7fe7671d25647742727809..5531ad792d47175439d22c469138dbdb99575872 100644 (file)
@@ -1,5 +1,6 @@
 #include "common.h"
 #include <poll.h>
+#include <sys/time.h>
 
 static memcached_return set_hostinfo(memcached_server_st *server)
 {
@@ -210,6 +211,7 @@ test_connect:
             {
               ptr->cached_errno= errno;
               WATCHPOINT_ERRNO(ptr->cached_errno);
+              WATCHPOINT_NUMBER(ptr->root->connect_timeout);
               close(ptr->fd);
               ptr->fd= -1;
               return MEMCACHED_ERRNO;