From 11694d1f129c0e5ef29ef0d74590177cd71ea6c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Tue, 23 Nov 1999 12:29:28 +0000 Subject: [PATCH] Compilation fix for Solaris. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index e4f8fdd783..dd25f30b46 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -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; } -- 2.45.2