From: roberts Date: Sat, 30 Jan 1999 22:33:23 +0000 (+0000) Subject: Misc. updates to get a clean make on Linux. A bit of X-Git-Tag: 0.67_01~429 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=52c5620a46a72386244ee1d5b70ba97005bd8bfa;p=catagits%2Ffcgi2.git Misc. updates to get a clean make on Linux. A bit of hack - I didn't bother figuring out autoconf. Modified Files: cgi-fcgi/cgi-fcgi.c include/fcgios.h --- diff --git a/cgi-fcgi/cgi-fcgi.c b/cgi-fcgi/cgi-fcgi.c index 32dfd83..292a3d6 100644 --- a/cgi-fcgi/cgi-fcgi.c +++ b/cgi-fcgi/cgi-fcgi.c @@ -12,11 +12,11 @@ */ #ifndef lint -static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.1 1997/09/16 15:36:25 stanleyg Exp $"; +static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.2 1999/01/30 22:33:23 roberts Exp $"; #endif /* not lint */ #include -#ifdef HAVE_UNISTD_H +#if defined HAVE_UNISTD_H || defined __linux__ #include #endif #include @@ -42,7 +42,6 @@ static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.1 1997/09/16 15:36:25 stanleyg #include "fcgios.h" static int wsReadPending = 0; -static int wsWritePending = 0; static int fcgiReadPending = 0; static int fcgiWritePending = 0; @@ -476,7 +475,6 @@ static void ScheduleIo(void) static void FCGI_Start(char *bindPath, char *appPath, int nServers) { int listenFd, i; - int tcp = FALSE; if((listenFd = OS_CreateLocalIpcFd(bindPath)) == -1) { exit(OS_Errno); diff --git a/include/fcgios.h b/include/fcgios.h index 04dfbe2..003acf1 100755 --- a/include/fcgios.h +++ b/include/fcgios.h @@ -18,6 +18,8 @@ #ifndef _FCGIOS_H #define _FCGIOS_H +#include + #ifdef _WIN32 #define OS_Errno GetLastError() #define OS_SetErrno(err) SetLastError(err)