]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.c
wxMSW update for CW, wxMac updated
[wxWidgets.git] / src / unix / gsocket.c
index 12f7eb5845fe9f73101bc4c7f6074a368b1ece33..d22b5bf23fe8ae42bff2c1dc4db62d65e6bc0d76 100644 (file)
@@ -1089,7 +1089,11 @@ GSocketError _GAddress_Init_INET(GAddress *address)
   address->m_family = GSOCK_INET;
   address->m_realfamily = PF_INET;
   ((struct sockaddr_in *)address->m_addr)->sin_family = AF_INET;
-  ((struct sockaddr_in *)address->m_addr)->sin_addr.s_addr = INADDR_ANY;
+  /*
+     INADDR_BROADCAST is identical to INADDR_NONE which is not defined
+     on all unices. INADDR_BROADCAST should be fine to indicate an error.
+   */
+  ((struct sockaddr_in *)address->m_addr)->sin_addr.s_addr = INADDR_BROADCAST;
 
   return GSOCK_NOERROR;
 }