diff options
author | Nils Durner <durner@gnunet.org> | 2007-08-14 20:59:55 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2007-08-14 20:59:55 +0000 |
commit | 62410ce9504ab1aaea52c59a0b9b2b95e7885778 (patch) | |
tree | f0f108e6385cd2604503f94c4a351db722b7988d | |
parent | 3f59c4a4702379feedbc5eef4db59e3e3e32eb00 (diff) | |
download | libmicrohttpd-62410ce9504ab1aaea52c59a0b9b2b95e7885778.tar.gz libmicrohttpd-62410ce9504ab1aaea52c59a0b9b2b95e7885778.zip |
fix MinGW
-rw-r--r-- | src/daemon/daemontest.c | 6 | ||||
-rw-r--r-- | src/daemon/daemontest_get.c | 5 | ||||
-rw-r--r-- | src/daemon/daemontest_long_header.c | 5 | ||||
-rw-r--r-- | src/daemon/daemontest_post.c | 5 | ||||
-rw-r--r-- | src/daemon/daemontest_put.c | 5 | ||||
-rw-r--r-- | src/daemon/internal.h | 2 |
6 files changed, 22 insertions, 6 deletions
diff --git a/src/daemon/daemontest.c b/src/daemon/daemontest.c index 7b4ad4de..53f56989 100644 --- a/src/daemon/daemontest.c +++ b/src/daemon/daemontest.c | |||
@@ -27,10 +27,14 @@ | |||
27 | #include "config.h" | 27 | #include "config.h" |
28 | #include "microhttpd.h" | 28 | #include "microhttpd.h" |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | #include <unistd.h> | ||
31 | #include <string.h> | 30 | #include <string.h> |
32 | #include <stdio.h> | 31 | #include <stdio.h> |
33 | 32 | ||
33 | #ifndef WINDOWS | ||
34 | #include <unistd.h> | ||
35 | #endif | ||
36 | |||
37 | |||
34 | static int | 38 | static int |
35 | testStartError () | 39 | testStartError () |
36 | { | 40 | { |
diff --git a/src/daemon/daemontest_get.c b/src/daemon/daemontest_get.c index f200a4c8..c144d368 100644 --- a/src/daemon/daemontest_get.c +++ b/src/daemon/daemontest_get.c | |||
@@ -29,10 +29,13 @@ | |||
29 | #include <curl/curl.h> | 29 | #include <curl/curl.h> |
30 | #include <microhttpd.h> | 30 | #include <microhttpd.h> |
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <unistd.h> | ||
33 | #include <string.h> | 32 | #include <string.h> |
34 | #include <time.h> | 33 | #include <time.h> |
35 | 34 | ||
35 | #ifndef WINDOWS | ||
36 | #include <unistd.h> | ||
37 | #endif | ||
38 | |||
36 | static int oneone; | 39 | static int oneone; |
37 | 40 | ||
38 | struct CBC | 41 | struct CBC |
diff --git a/src/daemon/daemontest_long_header.c b/src/daemon/daemontest_long_header.c index d0e26484..6377ac07 100644 --- a/src/daemon/daemontest_long_header.c +++ b/src/daemon/daemontest_long_header.c | |||
@@ -28,10 +28,13 @@ | |||
28 | #include <curl/curl.h> | 28 | #include <curl/curl.h> |
29 | #include <microhttpd.h> | 29 | #include <microhttpd.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include <unistd.h> | ||
32 | #include <string.h> | 31 | #include <string.h> |
33 | #include <time.h> | 32 | #include <time.h> |
34 | 33 | ||
34 | #ifndef WINDOWS | ||
35 | #include <unistd.h> | ||
36 | #endif | ||
37 | |||
35 | /** | 38 | /** |
36 | * We will set the memory available per connection to | 39 | * We will set the memory available per connection to |
37 | * half of this value, so the actual value does not have | 40 | * half of this value, so the actual value does not have |
diff --git a/src/daemon/daemontest_post.c b/src/daemon/daemontest_post.c index 61850a24..19c79556 100644 --- a/src/daemon/daemontest_post.c +++ b/src/daemon/daemontest_post.c | |||
@@ -33,10 +33,13 @@ | |||
33 | #include <curl/curl.h> | 33 | #include <curl/curl.h> |
34 | #include <microhttpd.h> | 34 | #include <microhttpd.h> |
35 | #include <stdlib.h> | 35 | #include <stdlib.h> |
36 | #include <unistd.h> | ||
37 | #include <string.h> | 36 | #include <string.h> |
38 | #include <time.h> | 37 | #include <time.h> |
39 | 38 | ||
39 | #ifndef WINDOWS | ||
40 | #include <unistd.h> | ||
41 | #endif | ||
42 | |||
40 | #define POST_DATA "name=daniel&project=curl" | 43 | #define POST_DATA "name=daniel&project=curl" |
41 | 44 | ||
42 | static int oneone; | 45 | static int oneone; |
diff --git a/src/daemon/daemontest_put.c b/src/daemon/daemontest_put.c index 342161c8..17a2f1c4 100644 --- a/src/daemon/daemontest_put.c +++ b/src/daemon/daemontest_put.c | |||
@@ -28,10 +28,13 @@ | |||
28 | #include <curl/curl.h> | 28 | #include <curl/curl.h> |
29 | #include <microhttpd.h> | 29 | #include <microhttpd.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include <unistd.h> | ||
32 | #include <string.h> | 31 | #include <string.h> |
33 | #include <time.h> | 32 | #include <time.h> |
34 | 33 | ||
34 | #ifndef WINDOWS | ||
35 | #include <unistd.h> | ||
36 | #endif | ||
37 | |||
35 | static int oneone; | 38 | static int oneone; |
36 | 39 | ||
37 | struct CBC | 40 | struct CBC |
diff --git a/src/daemon/internal.h b/src/daemon/internal.h index 8bc33c29..71914fd0 100644 --- a/src/daemon/internal.h +++ b/src/daemon/internal.h | |||
@@ -37,13 +37,13 @@ | |||
37 | #include <errno.h> | 37 | #include <errno.h> |
38 | #include <fcntl.h> | 38 | #include <fcntl.h> |
39 | #include <signal.h> | 39 | #include <signal.h> |
40 | #include <sys/mman.h> | ||
41 | 40 | ||
42 | #include "config.h" | 41 | #include "config.h" |
43 | #include "plibc.h" | 42 | #include "plibc.h" |
44 | #include "microhttpd.h" | 43 | #include "microhttpd.h" |
45 | 44 | ||
46 | #ifndef MINGW | 45 | #ifndef MINGW |
46 | #include <sys/mman.h> | ||
47 | #include <netdb.h> | 47 | #include <netdb.h> |
48 | #include <netinet/in.h> | 48 | #include <netinet/in.h> |
49 | #endif | 49 | #endif |