X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=libfcgi%2Fos_unix.c;h=038e5090fa14b756b12b8130bc20f1e5702cbef5;hb=ed728efb4171b6205476c97d17b94dadde4bfaa1;hp=73e4618cc837b9a0333ea0eb9afedf688a6574c5;hpb=4d534ebfd782dd93df56de36e8183358221ce05c;p=catagits%2Ffcgi2.git diff --git a/libfcgi/os_unix.c b/libfcgi/os_unix.c index 73e4618..038e509 100755 --- a/libfcgi/os_unix.c +++ b/libfcgi/os_unix.c @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: os_unix.c,v 1.5 1998/12/09 05:41:38 roberts Exp $"; +static const char rcsid[] = "$Id: os_unix.c,v 1.6 1999/01/30 22:24:11 roberts Exp $"; #endif /* not lint */ #include "fcgimisc.h" @@ -972,8 +972,12 @@ int OS_FcgiIpcAccept(char *clientAddrList) struct sockaddr_un un; struct sockaddr_in in; } sa; +#if defined __linux__ + socklen_t clilen; +#else int clilen; - +#endif + if (AcquireLock(TRUE) < 0) { return (-1); } @@ -1109,7 +1113,11 @@ int OS_IsFcgi() struct sockaddr_in in; struct sockaddr_un un; } sa; +#if defined __linux__ + socklen_t len = sizeof(sa); +#else int len = sizeof(sa); +#endif if (getpeername(FCGI_LISTENSOCK_FILENO, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN)