]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.c
make sure we are comparing the stripped strings
[wxWidgets.git] / src / unix / gsocket.c
index 1b8f5b0e52ac4d2c836d8402de337d59e092814e..16eae12743e6e4810bb1337bb8b35adefd85bd7c 100644 (file)
@@ -1616,8 +1616,10 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
   {
 #else
   /* Use gethostbyname by default */
+#ifndef __WXMAC__
   int val = 1;  /* VA doesn't like constants in conditional expressions */
   if (val)
+#endif
   {
 #endif
     struct in_addr *array_addr;