diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 8ccedd46da..829a0066d4 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -413,8 +413,10 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf); #endif /* __cplusplus */ #ifdef wxUSE_GSOCKET_CPLUSPLUS -# ifdef __WINDOWS__ +# if defined(__WINDOWS__) # include "wx/msw/gsockmsw.h" +# elif defined(__WXMAC__) && !defined(__DARWIN__) +# include "wx/mac/gsockmac.h" # else # include "wx/unix/gsockunx.h" # endif