X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=libfcgi%2Ffcgi_stdio.c;h=e141e7f91a8f091469ee858c3ea252d7c8996a99;hb=ac8d264a0023d0023d794f9644370a0f182c6037;hp=0578d2e70cb33f536f1f09490023edc4ce76251e;hpb=9227ca859cf7e8c02231a19fc93fc0dd15e90967;p=catagits%2Ffcgi2.git diff --git a/libfcgi/fcgi_stdio.c b/libfcgi/fcgi_stdio.c index 0578d2e..e141e7f 100644 --- a/libfcgi/fcgi_stdio.c +++ b/libfcgi/fcgi_stdio.c @@ -12,7 +12,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.12 2001/06/20 16:04:17 robs Exp $"; +static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.14 2001/09/01 01:09:30 robs Exp $"; #endif /* not lint */ #include /* for errno */ @@ -26,23 +26,25 @@ static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.12 2001/06/20 16:04:17 robs E #include #endif +#ifdef _WIN32 #define DLLAPI __declspec(dllexport) - -#define NO_FCGI_DEFINES -#include "fcgi_stdio.h" -#undef NO_FCGI_DEFINES +#endif #include "fcgiapp.h" #include "fcgios.h" #include "fcgimisc.h" +#define NO_FCGI_DEFINES +#include "fcgi_stdio.h" +#undef NO_FCGI_DEFINES + #ifndef _WIN32 extern char **environ; -/* These definitions should be supplied by stdio.h but for some - * reason they get lost on certain platforms. */ -#ifndef fileno +#ifdef HAVE_FILENO_PROTO +#include +#else extern int fileno(FILE *stream); #endif