addr = &(((struct sockaddr_in *)address->m_addr)->sin_addr);
/* If it is a numeric host name, convert it now */
-#if HAVE_INET_ATON
+#if defined(HAVE_INET_ATON)
if (inet_aton(hostname, addr) == 0) {
-#elif HAVE_INET_ADDR
+#elif defined(HAVE_INET_ADDR)
/* Fix from Guillermo Rodriguez Garcia <guille@iies.es> */
if ( (addr->s_addr = inet_addr(hostname)) == -1 ) {
#else