From d5b08e7b0715abfded6e42433ca21f9dd9567dd3 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Tue, 10 Aug 1999 19:59:27 +0000 Subject: [PATCH] #if => #if defined() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 541ab46929..2ffafc86b6 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -972,9 +972,9 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname) 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 */ if ( (addr->s_addr = inet_addr(hostname)) == -1 ) { #else