[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5491 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5491 - libmicrohttpd/src/daemon |
Date: |
Tue, 14 Aug 2007 14:59:57 -0600 (MDT) |
Author: durner
Date: 2007-08-14 14:59:55 -0600 (Tue, 14 Aug 2007)
New Revision: 5491
Modified:
libmicrohttpd/src/daemon/daemontest.c
libmicrohttpd/src/daemon/daemontest_get.c
libmicrohttpd/src/daemon/daemontest_long_header.c
libmicrohttpd/src/daemon/daemontest_post.c
libmicrohttpd/src/daemon/daemontest_put.c
libmicrohttpd/src/daemon/internal.h
Log:
fix MinGW
Modified: libmicrohttpd/src/daemon/daemontest.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest.c 2007-08-14 20:40:39 UTC (rev
5490)
+++ libmicrohttpd/src/daemon/daemontest.c 2007-08-14 20:59:55 UTC (rev
5491)
@@ -27,10 +27,14 @@
#include "config.h"
#include "microhttpd.h"
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#ifndef WINDOWS
+#include <unistd.h>
+#endif
+
+
static int
testStartError ()
{
Modified: libmicrohttpd/src/daemon/daemontest_get.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_get.c 2007-08-14 20:40:39 UTC (rev
5490)
+++ libmicrohttpd/src/daemon/daemontest_get.c 2007-08-14 20:59:55 UTC (rev
5491)
@@ -29,10 +29,13 @@
#include <curl/curl.h>
#include <microhttpd.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <time.h>
+#ifndef WINDOWS
+#include <unistd.h>
+#endif
+
static int oneone;
struct CBC
Modified: libmicrohttpd/src/daemon/daemontest_long_header.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_long_header.c 2007-08-14 20:40:39 UTC
(rev 5490)
+++ libmicrohttpd/src/daemon/daemontest_long_header.c 2007-08-14 20:59:55 UTC
(rev 5491)
@@ -28,10 +28,13 @@
#include <curl/curl.h>
#include <microhttpd.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <time.h>
+#ifndef WINDOWS
+#include <unistd.h>
+#endif
+
/**
* We will set the memory available per connection to
* half of this value, so the actual value does not have
Modified: libmicrohttpd/src/daemon/daemontest_post.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_post.c 2007-08-14 20:40:39 UTC (rev
5490)
+++ libmicrohttpd/src/daemon/daemontest_post.c 2007-08-14 20:59:55 UTC (rev
5491)
@@ -33,10 +33,13 @@
#include <curl/curl.h>
#include <microhttpd.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <time.h>
+#ifndef WINDOWS
+#include <unistd.h>
+#endif
+
#define POST_DATA "name=daniel&project=curl"
static int oneone;
Modified: libmicrohttpd/src/daemon/daemontest_put.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_put.c 2007-08-14 20:40:39 UTC (rev
5490)
+++ libmicrohttpd/src/daemon/daemontest_put.c 2007-08-14 20:59:55 UTC (rev
5491)
@@ -28,10 +28,13 @@
#include <curl/curl.h>
#include <microhttpd.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <time.h>
+#ifndef WINDOWS
+#include <unistd.h>
+#endif
+
static int oneone;
struct CBC
Modified: libmicrohttpd/src/daemon/internal.h
===================================================================
--- libmicrohttpd/src/daemon/internal.h 2007-08-14 20:40:39 UTC (rev 5490)
+++ libmicrohttpd/src/daemon/internal.h 2007-08-14 20:59:55 UTC (rev 5491)
@@ -37,13 +37,13 @@
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
-#include <sys/mman.h>
#include "config.h"
#include "plibc.h"
#include "microhttpd.h"
#ifndef MINGW
+#include <sys/mman.h>
#include <netdb.h>
#include <netinet/in.h>
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5491 - libmicrohttpd/src/daemon,
gnunet <=