aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-12 09:01:41 +0000
committerYang Tse <yangsita@gmail.com>2009-06-12 09:01:41 +0000
commitc2ce2aa4deea21fabfc1cb6fd65a6581b41390bd (patch)
tree9379eb3bc6fb03bb326a4eb69c4dd322ab2dda36 /tests/server
parent90c9fd55fcef5d28721467e296c1d64d7437b64d (diff)
fix compiler warning
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sws.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 99f188017..accf5555b 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -183,13 +183,15 @@ static const char *doc404 = "HTTP/1.1 404 Not Found\r\n"
"The requested URL was not found on this server.\n"
"<P><HR><ADDRESS>" SWSVERSION "</ADDRESS>\n" "</BODY></HTML>\n";
-#if defined(SIGPIPE) && defined(HAVE_SIGNAL)
+#ifndef WIN32
+# if defined(SIGPIPE) && defined(HAVE_SIGNAL)
static volatile int sigpipe; /* Why? It's not used */
static void sigpipe_handler(int sig)
{
(void)sig; /* prevent warning */
sigpipe = 1;
}
+# endif
#endif
static int ProcessRequest(struct httprequest *req)