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 */ }