--- curl-7.11.1-20040220/tests/server/sws.c 2004-02-14 04:00:04.000000000 +0100 +++ curl-new/tests/server/sws.c 2004-02-20 10:48:05.000000000 +0100 @@ -38,15 +38,20 @@ #include #include #include +#ifndef __MINGW32__ #include +#include +#endif +#ifdef HAVE_SYS_SOCKET_H #include +#endif +#ifdef HAVE_NETINET_IN_H #include +#endif #ifdef _XOPEN_SOURCE_EXTENDED /* This define is "almost" required to build on HPUX 11 */ -#include +#include #endif -#include - #ifndef FALSE #define FALSE 0 #endif @@ -114,7 +119,7 @@ "The requested URL was not found on this server.\n" "


" SWSVERSION "
\n" "\n"; -#ifdef HAVE_SIGNAL +#ifdef SIGPIPE static volatile int sigpipe; #endif static FILE *logfp; @@ -139,7 +144,7 @@ } -#ifdef HAVE_SIGNAL +#ifdef SIGPIPE static void sigpipe_handler(int sig) { (void)sig; /* prevent warning */ @@ -554,12 +559,14 @@ exit(1); } +#ifdef SIGPIPE #ifdef HAVE_SIGNAL signal(SIGPIPE, sigpipe_handler); #endif #ifdef HAVE_SIGINTERRUPT siginterrupt(SIGPIPE, 1); #endif +#endif sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) {