+#ifdef HAVE_GETHOSTBYNAME_R
+ struct hostent h_static;
+ char buffer[SMALL_STRING_LEN];
+ int tmp_error;
+
+ if (gethostbyname_r(server->hostname,
+ &h_static, buffer, SMALL_STRING_LEN,
+ &h, &tmp_error))
+ {
+ WATCHPOINT_STRING(server->hostname);
+ WATCHPOINT_STRING(hstrerror(tmp_error));
+ return MEMCACHED_HOST_LOOKUP_FAILURE;
+ }
+#else