diff options
Diffstat (limited to 'src/testcurl')
-rw-r--r-- | src/testcurl/Makefile.am | 11 | ||||
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am index 7ec4ff68..33e95d36 100644 --- a/src/testcurl/Makefile.am +++ b/src/testcurl/Makefile.am | |||
@@ -137,7 +137,12 @@ test_digestauth_with_arguments_LDADD = \ | |||
137 | @LIBCURL@ @LIBGCRYPT_LIBS@ | 137 | @LIBCURL@ @LIBGCRYPT_LIBS@ |
138 | 138 | ||
139 | test_get_sendfile_SOURCES = \ | 139 | test_get_sendfile_SOURCES = \ |
140 | test_get_sendfile.c | 140 | test_get_sendfile.c \ |
141 | ../platform/platform_interface.h | ||
142 | if HAVE_W32 | ||
143 | test_get_sendfile_SOURCES += \ | ||
144 | ../platform/w32functions.h ../platform/w32functions.c | ||
145 | endif | ||
141 | test_get_sendfile_LDADD = \ | 146 | test_get_sendfile_LDADD = \ |
142 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | 147 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
143 | @LIBCURL@ | 148 | @LIBCURL@ |
@@ -215,6 +220,10 @@ test_get11_LDADD = \ | |||
215 | 220 | ||
216 | test_get_sendfile11_SOURCES = \ | 221 | test_get_sendfile11_SOURCES = \ |
217 | test_get_sendfile.c | 222 | test_get_sendfile.c |
223 | if HAVE_W32 | ||
224 | test_get_sendfile11_SOURCES += \ | ||
225 | ../platform/w32functions.h ../platform/w32functions.c | ||
226 | endif | ||
218 | test_get_sendfile11_LDADD = \ | 227 | test_get_sendfile11_LDADD = \ |
219 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | 228 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
220 | @LIBCURL@ | 229 | @LIBCURL@ |
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index 7f85458c..d073fee3 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include "MHD_config.h" | 27 | #include "MHD_config.h" |
28 | #include "platform.h" | 28 | #include "platform.h" |
29 | #include "platform_interface.h" | ||
29 | #include <curl/curl.h> | 30 | #include <curl/curl.h> |
30 | #include <microhttpd.h> | 31 | #include <microhttpd.h> |
31 | #include <stdlib.h> | 32 | #include <stdlib.h> |
@@ -93,7 +94,7 @@ ahc_echo (void *cls, | |||
93 | { | 94 | { |
94 | fprintf (stderr, "Failed to open `%s': %s\n", | 95 | fprintf (stderr, "Failed to open `%s': %s\n", |
95 | sourcefile, | 96 | sourcefile, |
96 | STRERROR (errno)); | 97 | MHD_strerror_ (errno)); |
97 | exit (1); | 98 | exit (1); |
98 | } | 99 | } |
99 | response = MHD_create_response_from_fd (strlen (TESTSTR), fd); | 100 | response = MHD_create_response_from_fd (strlen (TESTSTR), fd); |