]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.c
Compilation fix for Solaris.
[wxWidgets.git] / src / unix / gsocket.c
index e4f8fdd783e8dfd3f655be2f4489b5f951fb1285..dd25f30b46e0348c53fa731ba3172e28bf61c94f 100644 (file)
@@ -1089,7 +1089,9 @@ 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_NONE;
+  // INADDR_BROADCAST is identical to INADDR_NONE which is not defined
+  // on all unices. INADDR_BROADCAST should be fine to indicate an error. (KB)
+  ((struct sockaddr_in *)address->m_addr)->sin_addr.s_addr = INADDR_BROADCAST;
 
   return GSOCK_NOERROR;
 }