diff options
Diffstat (limited to 'src/testcurl/test_get.c')
-rw-r--r-- | src/testcurl/test_get.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c index 40920b36..855a0742 100644 --- a/src/testcurl/test_get.c +++ b/src/testcurl/test_get.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "MHD_config.h" | 28 | #include "MHD_config.h" |
29 | #include "platform.h" | 29 | #include "platform.h" |
30 | #include "platform_interface.h" | ||
30 | #include <curl/curl.h> | 31 | #include <curl/curl.h> |
31 | #include <microhttpd.h> | 32 | #include <microhttpd.h> |
32 | #include <stdlib.h> | 33 | #include <stdlib.h> |
@@ -472,7 +473,7 @@ testStopRace (int poll_flag) | |||
472 | if (CONNECT (fd, (struct sockaddr *)(&sin), sizeof(sin)) < 0) | 473 | if (CONNECT (fd, (struct sockaddr *)(&sin), sizeof(sin)) < 0) |
473 | { | 474 | { |
474 | fprintf(stderr, "connect: %m\n"); | 475 | fprintf(stderr, "connect: %m\n"); |
475 | CLOSE (fd); | 476 | MHD_socket_close_ (fd); |
476 | return 512; | 477 | return 512; |
477 | } | 478 | } |
478 | 479 | ||
@@ -483,7 +484,7 @@ testStopRace (int poll_flag) | |||
483 | /* printf("Stopping daemon\n"); */ | 484 | /* printf("Stopping daemon\n"); */ |
484 | MHD_stop_daemon (d); | 485 | MHD_stop_daemon (d); |
485 | 486 | ||
486 | CLOSE (fd); | 487 | MHD_socket_close_ (fd); |
487 | 488 | ||
488 | /* printf("good\n"); */ | 489 | /* printf("good\n"); */ |
489 | return 0; | 490 | return 0; |