aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/Makefile.am11
-rw-r--r--src/testcurl/test_get_sendfile.c3
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
139test_get_sendfile_SOURCES = \ 139test_get_sendfile_SOURCES = \
140 test_get_sendfile.c 140 test_get_sendfile.c \
141 ../platform/platform_interface.h
142if HAVE_W32
143test_get_sendfile_SOURCES += \
144 ../platform/w32functions.h ../platform/w32functions.c
145endif
141test_get_sendfile_LDADD = \ 146test_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
216test_get_sendfile11_SOURCES = \ 221test_get_sendfile11_SOURCES = \
217 test_get_sendfile.c 222 test_get_sendfile.c
223if HAVE_W32
224test_get_sendfile11_SOURCES += \
225 ../platform/w32functions.h ../platform/w32functions.c
226endif
218test_get_sendfile11_LDADD = \ 227test_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);