aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-01 08:40:41 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-01 08:40:41 +0000
commit912620e3f9870ecdf342bf1ce7dce284b601f616 (patch)
tree2e4c90c2f376790a16a8b43093d322d27e7078bb
parent9816a8f598c00cf7ce9e1b23d32c6ef4cf7c44f7 (diff)
downloadlibmicrohttpd-912620e3f9870ecdf342bf1ce7dce284b601f616.tar.gz
libmicrohttpd-912620e3f9870ecdf342bf1ce7dce284b601f616.zip
BS: fixing compilation problem on MinGW
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog3
-rw-r--r--src/daemon/daemon.c11
3 files changed, 15 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index e95cc80f..789de081 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -37,6 +37,7 @@ Will Bryant <will.bryant@gmail.com>
37LRN <lrn1986@gmail.com> 37LRN <lrn1986@gmail.com>
38Sven Geggus <sts@fuchsschwanzdomain.de> 38Sven Geggus <sts@fuchsschwanzdomain.de>
39Steve Wolf <stevewolf6@gmail.com> 39Steve Wolf <stevewolf6@gmail.com>
40Brecht Sanders <brecht@sanders.org>
40 41
41Documentation contributions also came from: 42Documentation contributions also came from:
42Marco Maggi <marco.maggi-ipsu@poste.it> 43Marco Maggi <marco.maggi-ipsu@poste.it>
diff --git a/ChangeLog b/ChangeLog
index 64884245..04fe614a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Wed Feb 1 09:39:12 CET 2012
2 Fixed compilation problem on MinGW. -BS
3
1Tue Jan 31 17:50:24 CET 2012 4Tue Jan 31 17:50:24 CET 2012
2 Releasing 0.9.19. -CG 5 Releasing 0.9.19. -CG
3 6
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 61d00fb7..a165111f 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -956,6 +956,7 @@ MHD_add_connection (struct MHD_Daemon *daemon,
956#endif 956#endif
957 { 957 {
958 /* make socket non-blocking */ 958 /* make socket non-blocking */
959#ifndef MINGW
959 int flags = fcntl (connection->socket_fd, F_GETFL); 960 int flags = fcntl (connection->socket_fd, F_GETFL);
960 if ( (flags == -1) || 961 if ( (flags == -1) ||
961 (0 != fcntl (connection->socket_fd, F_SETFL, flags | O_NONBLOCK)) ) 962 (0 != fcntl (connection->socket_fd, F_SETFL, flags | O_NONBLOCK)) )
@@ -965,6 +966,16 @@ MHD_add_connection (struct MHD_Daemon *daemon,
965 STRERROR (errno)); 966 STRERROR (errno));
966#endif 967#endif
967 } 968 }
969#else
970 unsigned long flags = 1;
971 if (0 != ioctlsocket (connection->socket_fd, FIONBIO, &flags))
972#endif
973 {
974#if HAVE_MESSAGES
975 FPRINTF(stderr, "Failed to make socket non-blocking: %s\n",
976 STRERROR (errno));
977#endif
978 }
968 } 979 }
969 980
970#if HTTPS_SUPPORT 981#if HTTPS_SUPPORT