From: Karsten Ballüder Date: Fri, 23 Jul 1999 09:48:31 +0000 (+0000) Subject: Fixed stupid new bugs :-( X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/efee48a0f673c961254715e583cbd89dee8ce54e Fixed stupid new bugs :-( git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.c b/src/unix/gsocket.c index 7456ccf635..7d489ecdd0 100644 --- a/src/unix/gsocket.c +++ b/src/unix/gsocket.c @@ -4,6 +4,9 @@ * Purpose: GSocket main Unix file * CVSID: $Id$ * Log: $Log$ + * Log: Revision 1.2 1999/07/23 09:48:31 KB + * Log: Fixed stupid new bugs :-( + * Log: * Log: Revision 1.1 1999/07/22 17:51:54 GL * Log: Added GSocket for Unix (only GTK for the moment) * Log: Updated wxSocket to use GSocket API @@ -21,13 +24,13 @@ #include #include +#include #ifdef vms #include #else #include #endif #include -#include #include #include #include @@ -47,10 +50,14 @@ #endif #include - +#include #include #include "gsockunx.h" +#ifndef SOCKLEN_T +# define SOCKLEN_T int +#endif + /* Constructors / Destructors */ GSocket *GSocket_new() @@ -152,7 +159,7 @@ GAddress *GSocket_GetLocal(GSocket *socket) { GAddress *address; struct sockaddr addr; - socklen_t size; + SOCKLEN_T size; assert(socket != NULL); @@ -717,10 +724,13 @@ void _GAddress_translate_from(GAddress *address, struct sockaddr *addr, int len) case AF_UNIX: address->m_family = GSOCK_UNIX; break; +#ifdef AF_INET6 case AF_INET6: address->m_family = GSOCK_INET6; break; +#endif default: + /* TODO error */ }