p9y: bsd
[m6w6/libmemcached] / test / lib / Connection.hpp
index 380116e6bdc9bd5aaa11783cf69d8c40d5843a4d..bcb78e4a9bf18e7a6005c89dd31e37bf94a4f568 100644 (file)
@@ -18,6 +18,7 @@
 #include "common.hpp"
 
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <sys/un.h>
 
 class Connection {
@@ -51,7 +52,7 @@ private:
     UNIX = sizeof(sockaddr_un),
     INET = sizeof(sockaddr_in),
     INET6 = sizeof(sockaddr_in6)
-  } size;
+  } size = NONE;
   bool connected{false};
 
   static string error(const initializer_list<string> &args);