X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52a07708c402e7b60a73abb6bae42838cf92c9f7..77611ad4da9df336a0805508276a81b8f4437107:/src/unix/gsocket.c diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 8e9596a423..a43156c9a5 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -25,7 +25,7 @@ #ifdef __VMS__ #include -struct sockaddr_un { +struct sockaddr_un { u_char sun_len; /* sockaddr len including null */ u_char sun_family; /* AF_UNIX */ char sun_path[108]; /* path name (gag) */ @@ -109,7 +109,7 @@ struct sockaddr_un { #define _GSocket_Disable_Events(socket) #define _GSocket_Install_Callback(socket, event) #define _GSocket_Uninstall_Callback(socket, event) -#endif // wxUSE_GUI +#endif /* wxUSE_GUI */ /* Global initialisers */ @@ -201,7 +201,7 @@ void GSocket_Shutdown(GSocket *socket) for (evt = 0; evt < GSOCK_MAX_EVENT; evt++) socket->m_cbacks[evt] = NULL; - socket->m_detected = 0; + socket->m_detected = GSOCK_LOST_FLAG; _GSocket_Disable_Events(socket); }