aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-11 15:00:41 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-11 15:00:41 +0000
commit4c1b251d7591d28257afd7bf7711350596f247ba (patch)
tree43e5580fc59d508a89168d5ea88776e063e57590
parentb0540449f300b425e7d900808e71c4f878286677 (diff)
downloadlibmicrohttpd-4c1b251d7591d28257afd7bf7711350596f247ba.tar.gz
libmicrohttpd-4c1b251d7591d28257afd7bf7711350596f247ba.zip
-only check if use pipe is set, as on FreeBSD FD_SETSIZE is a signed int...
-rw-r--r--src/microhttpd/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 2d9de7ac..4fe80f23 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3030,6 +3030,7 @@ MHD_start_daemon_va (unsigned int flags,
3030 } 3030 }
3031#ifndef WINDOWS 3031#ifndef WINDOWS
3032 if ( (0 == (flags & MHD_USE_POLL)) && 3032 if ( (0 == (flags & MHD_USE_POLL)) &&
3033 (1 == use_pipe) &&
3033 (daemon->wpipe[0] >= FD_SETSIZE) ) 3034 (daemon->wpipe[0] >= FD_SETSIZE) )
3034 { 3035 {
3035#if HAVE_MESSAGES 3036#if HAVE_MESSAGES