X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af9d1662d9618c099b1a0d606a8f14dfd1e86b06..0240e8b1aa935d43689b0b8ec36de3c06c1a4758:/src/unix/gsocket.c diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 12f7eb5845..d22b5bf23f 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -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; }