[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/03: Fixed missing <errno.h> includes
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/03: Fixed missing <errno.h> includes |
Date: |
Sun, 17 Sep 2023 18:04:33 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit c209ce76f7080c8233ba834fbb5ad10a6a2fa803
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Sep 15 18:53:40 2023 +0300
Fixed missing <errno.h> includes
While 'errno' can be defined in various headers, by standard it must
be defined in <errno.h> header.
---
src/examples/demo.c | 1 +
src/examples/demo_https.c | 1 +
src/examples/digest_auth_example.c | 1 +
src/examples/fileserver_example_dirs.c | 1 +
src/examples/fileserver_example_external_select.c | 1 +
src/examples/suspend_resume_epoll.c | 1 +
src/examples/upgrade_example.c | 1 +
src/examples/websocket_chatserver_example.c | 1 +
src/examples/websocket_threaded_example.c | 1 +
src/microhttpd/mhd_itc.h | 3 ++-
src/microhttpd/test_auth_parse.c | 1 +
src/microhttpd/test_client_put_stop.c | 1 +
src/microhttpd/test_set_panic.c | 1 +
src/microhttpd/test_shutdown_select.c | 1 +
src/microhttpd/test_upgrade.c | 1 +
src/microhttpd/test_upgrade_large.c | 1 +
src/testcurl/perf_get.c | 1 +
src/testcurl/perf_get_concurrent.c | 1 +
src/testcurl/test_add_conn.c | 1 +
src/testcurl/test_basicauth.c | 1 +
src/testcurl/test_callback.c | 1 +
src/testcurl/test_delete.c | 1 +
src/testcurl/test_digestauth.c | 1 +
src/testcurl/test_digestauth2.c | 1 +
src/testcurl/test_digestauth_concurrent.c | 1 +
src/testcurl/test_digestauth_emu_ext.c | 1 +
src/testcurl/test_digestauth_sha256.c | 1 +
src/testcurl/test_digestauth_with_arguments.c | 1 +
src/testcurl/test_get.c | 1 +
src/testcurl/test_get_chunked.c | 1 +
src/testcurl/test_get_close_keep_alive.c | 1 +
src/testcurl/test_get_empty.c | 1 +
src/testcurl/test_get_iovec.c | 1 +
src/testcurl/test_get_response_cleanup.c | 1 +
src/testcurl/test_get_sendfile.c | 1 +
src/testcurl/test_head.c | 1 +
src/testcurl/test_large_put.c | 1 +
src/testcurl/test_parse_cookies.c | 1 +
src/testcurl/test_patch.c | 1 +
src/testcurl/test_post.c | 1 +
src/testcurl/test_post_loop.c | 1 +
src/testcurl/test_postform.c | 1 +
src/testcurl/test_process_arguments.c | 1 +
src/testcurl/test_process_headers.c | 1 +
src/testcurl/test_put.c | 1 +
src/testcurl/test_put_broken_len.c | 1 +
src/testcurl/test_put_chunked.c | 1 +
src/testcurl/test_put_header_fold.c | 1 +
src/testcurl/test_quiesce.c | 1 +
src/testcurl/test_toolarge.c | 1 +
src/testcurl/test_tricky.c | 1 +
src/testzzuf/test_get.c | 1 +
52 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/src/examples/demo.c b/src/examples/demo.c
index edce395d..3134d5ed 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -43,6 +43,7 @@
#endif /* MHD_HAVE_LIBMAGIC */
#include <limits.h>
#include <ctype.h>
+#include <errno.h>
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 2
#undef MHD_CPU_COUNT
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index 56c746ca..6658408a 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -45,6 +45,7 @@
#endif /* MHD_HAVE_LIBMAGIC */
#include <limits.h>
#include <ctype.h>
+#include <errno.h>
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 2
#undef MHD_CPU_COUNT
diff --git a/src/examples/digest_auth_example.c
b/src/examples/digest_auth_example.c
index db8a1f28..8d5a4041 100644
--- a/src/examples/digest_auth_example.c
+++ b/src/examples/digest_auth_example.c
@@ -27,6 +27,7 @@
#include "platform.h"
#include <microhttpd.h>
#include <stdlib.h>
+#include <errno.h>
#define PAGE \
"<html><head><title>libmicrohttpd demo</title></head>" \
diff --git a/src/examples/fileserver_example_dirs.c
b/src/examples/fileserver_example_dirs.c
index 5ec60428..98d2e096 100644
--- a/src/examples/fileserver_example_dirs.c
+++ b/src/examples/fileserver_example_dirs.c
@@ -31,6 +31,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <errno.h>
static ssize_t
diff --git a/src/examples/fileserver_example_external_select.c
b/src/examples/fileserver_example_external_select.c
index 192e00d1..87097529 100644
--- a/src/examples/fileserver_example_external_select.c
+++ b/src/examples/fileserver_example_external_select.c
@@ -28,6 +28,7 @@
#include <microhttpd.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <errno.h>
#define PAGE \
"<html><head><title>File not found</title></head><body>File not
found</body></html>"
diff --git a/src/examples/suspend_resume_epoll.c
b/src/examples/suspend_resume_epoll.c
index c85d9b7c..49995f5d 100644
--- a/src/examples/suspend_resume_epoll.c
+++ b/src/examples/suspend_resume_epoll.c
@@ -30,6 +30,7 @@
#include <sys/epoll.h>
#include <sys/timerfd.h>
#include <limits.h>
+#include <errno.h>
#define TIMEOUT_INFINITE -1
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c
index 5b57d24e..46acf2a7 100644
--- a/src/examples/upgrade_example.c
+++ b/src/examples/upgrade_example.c
@@ -33,6 +33,7 @@
#include "platform.h"
#include <microhttpd.h>
#include <pthread.h>
+#include <errno.h>
#define PAGE \
"<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd
demo</body></html>"
diff --git a/src/examples/websocket_chatserver_example.c
b/src/examples/websocket_chatserver_example.c
index f01ada43..f4aac7b3 100644
--- a/src/examples/websocket_chatserver_example.c
+++ b/src/examples/websocket_chatserver_example.c
@@ -33,6 +33,7 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "platform.h"
+#include <errno.h>
#include <microhttpd.h>
#include <microhttpd_ws.h>
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
diff --git a/src/examples/websocket_threaded_example.c
b/src/examples/websocket_threaded_example.c
index af036d24..4fcac79b 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -29,6 +29,7 @@
/* TODO: allow to send large messages. */
#include "platform.h"
+#include <errno.h>
#include <pthread.h>
#include <microhttpd.h>
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index ad0d14e7..3822c164 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -54,10 +54,11 @@
#include <sys/eventfd.h>
#include <stdint.h> /* for uint64_t */
#ifdef HAVE_UNISTD_H
-#include <unistd.h> /* for read(), write(), errno */
+#include <unistd.h> /* for read(), write() */
#endif /* HAVE_UNISTD_H */
#ifdef HAVE_STRING_H
#include <string.h> /* for strerror() */
+#include <errno.h>
#endif
diff --git a/src/microhttpd/test_auth_parse.c b/src/microhttpd/test_auth_parse.c
index 459c8286..27fc84a0 100644
--- a/src/microhttpd/test_auth_parse.c
+++ b/src/microhttpd/test_auth_parse.c
@@ -26,6 +26,7 @@
#include "mhd_options.h"
#include <string.h>
#include <stdio.h>
+#include <errno.h>
#include "gen_auth.h"
#ifdef BAUTH_SUPPORT
#include "basicauth.h"
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index 271bc522..4794070e 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -30,6 +30,7 @@
#include <string.h>
#include <time.h>
#include <stdint.h>
+#include <errno.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
diff --git a/src/microhttpd/test_set_panic.c b/src/microhttpd/test_set_panic.c
index ac803a26..44df5707 100644
--- a/src/microhttpd/test_set_panic.c
+++ b/src/microhttpd/test_set_panic.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
diff --git a/src/microhttpd/test_shutdown_select.c
b/src/microhttpd/test_shutdown_select.c
index 437d27a9..a002f963 100644
--- a/src/microhttpd/test_shutdown_select.c
+++ b/src/microhttpd/test_shutdown_select.c
@@ -34,6 +34,7 @@
#include "mhd_sockets.h"
#include <stdlib.h>
#include <stdio.h>
+#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 4a24c3c5..64020891 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -33,6 +33,7 @@
#include <pthread.h>
#include <stdlib.h>
#include <stddef.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
#endif
diff --git a/src/microhttpd/test_upgrade_large.c
b/src/microhttpd/test_upgrade_large.c
index 9d344406..e2600f84 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -35,6 +35,7 @@
#include <pthread.h>
#include <stdlib.h>
#include <stddef.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
#endif
diff --git a/src/testcurl/perf_get.c b/src/testcurl/perf_get.c
index ba605492..1f009660 100644
--- a/src/testcurl/perf_get.c
+++ b/src/testcurl/perf_get.c
@@ -45,6 +45,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/perf_get_concurrent.c
b/src/testcurl/perf_get_concurrent.c
index 2cf273f4..a0cf4c6a 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -42,6 +42,7 @@
#include <string.h>
#include <time.h>
#include <pthread.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#if defined(MHD_CPU_COUNT) && (MHD_CPU_COUNT + 0) < 2
diff --git a/src/testcurl/test_add_conn.c b/src/testcurl/test_add_conn.c
index c82fa780..5cc91a9b 100644
--- a/src/testcurl/test_add_conn.c
+++ b/src/testcurl/test_add_conn.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testcurl/test_basicauth.c b/src/testcurl/test_basicauth.c
index f7038672..378ffd28 100644
--- a/src/testcurl/test_basicauth.c
+++ b/src/testcurl/test_basicauth.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <sys/socket.h>
diff --git a/src/testcurl/test_callback.c b/src/testcurl/test_callback.c
index 3b293cd9..a64c6e2e 100644
--- a/src/testcurl/test_callback.c
+++ b/src/testcurl/test_callback.c
@@ -29,6 +29,7 @@
#include "platform.h"
#include <curl/curl.h>
#include <microhttpd.h>
+#include <errno.h>
struct callback_closure
{
diff --git a/src/testcurl/test_delete.c b/src/testcurl/test_delete.c
index 3764745c..adf68592 100644
--- a/src/testcurl/test_delete.c
+++ b/src/testcurl/test_delete.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index fe221f7d..386b66a2 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \
(defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB))
diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c
index 30d19a02..275b53df 100644
--- a/src/testcurl/test_digestauth2.c
+++ b/src/testcurl/test_digestauth2.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \
(defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB))
diff --git a/src/testcurl/test_digestauth_concurrent.c
b/src/testcurl/test_digestauth_concurrent.c
index 97ca8db7..87939a77 100644
--- a/src/testcurl/test_digestauth_concurrent.c
+++ b/src/testcurl/test_digestauth_concurrent.c
@@ -38,6 +38,7 @@
#define NEED_GCRYP_INIT 1
#include <gcrypt.h>
#endif /* MHD_HTTPS_REQUIRE_GCRYPT && (MHD_SHA256_TLSLIB || MHD_MD5_TLSLIB) */
+#include <errno.h>
#ifndef WINDOWS
#include <sys/socket.h>
diff --git a/src/testcurl/test_digestauth_emu_ext.c
b/src/testcurl/test_digestauth_emu_ext.c
index 092a2d50..27990248 100644
--- a/src/testcurl/test_digestauth_emu_ext.c
+++ b/src/testcurl/test_digestauth_emu_ext.c
@@ -36,6 +36,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <sys/socket.h>
diff --git a/src/testcurl/test_digestauth_sha256.c
b/src/testcurl/test_digestauth_sha256.c
index d63283be..26121ace 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -34,6 +34,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \
(defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB))
diff --git a/src/testcurl/test_digestauth_with_arguments.c
b/src/testcurl/test_digestauth_with_arguments.c
index 5cf7d061..ba9c45ee 100644
--- a/src/testcurl/test_digestauth_with_arguments.c
+++ b/src/testcurl/test_digestauth_with_arguments.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \
(defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB))
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index c77c9061..ad794ef7 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testcurl/test_get_chunked.c b/src/testcurl/test_get_chunked.c
index a86ba141..ebba7110 100644
--- a/src/testcurl/test_get_chunked.c
+++ b/src/testcurl/test_get_chunked.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
diff --git a/src/testcurl/test_get_close_keep_alive.c
b/src/testcurl/test_get_close_keep_alive.c
index 81f7576c..21f909c6 100644
--- a/src/testcurl/test_get_close_keep_alive.c
+++ b/src/testcurl/test_get_close_keep_alive.c
@@ -34,6 +34,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c
index 0f20c057..cc34d152 100644
--- a/src/testcurl/test_get_empty.c
+++ b/src/testcurl/test_get_empty.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c
index 4d4b24e8..daaa7840 100644
--- a/src/testcurl/test_get_iovec.c
+++ b/src/testcurl/test_get_iovec.c
@@ -44,6 +44,7 @@
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif
+#include <errno.h>
#include "mhd_sockets.h"
#include "mhd_has_in_name.h"
diff --git a/src/testcurl/test_get_response_cleanup.c
b/src/testcurl/test_get_response_cleanup.c
index 1515e62d..4d6a043b 100644
--- a/src/testcurl/test_get_response_cleanup.c
+++ b/src/testcurl/test_get_response_cleanup.c
@@ -36,6 +36,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
+#include <errno.h>
#ifndef _WIN32
#include <signal.h>
#endif /* _WIN32 */
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index 31092394..893d252b 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -34,6 +34,7 @@
#include <time.h>
#include <sys/types.h>
#include <fcntl.h>
+#include <errno.h>
#include "mhd_sockets.h"
#include "mhd_has_in_name.h"
diff --git a/src/testcurl/test_head.c b/src/testcurl/test_head.c
index 9458f8a0..f8e1fccc 100644
--- a/src/testcurl/test_head.c
+++ b/src/testcurl/test_head.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef _WIN32
#include <sys/socket.h>
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index b4e72675..55e64a2f 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
diff --git a/src/testcurl/test_parse_cookies.c
b/src/testcurl/test_parse_cookies.c
index 5f6b847b..39226de2 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef _WIN32
#include <sys/socket.h>
diff --git a/src/testcurl/test_patch.c b/src/testcurl/test_patch.c
index 24da4d30..95839f39 100644
--- a/src/testcurl/test_patch.c
+++ b/src/testcurl/test_patch.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_post.c b/src/testcurl/test_post.c
index 658b7dd2..8dedcc17 100644
--- a/src/testcurl/test_post.c
+++ b/src/testcurl/test_post.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c
index 593599c9..879d0266 100644
--- a/src/testcurl/test_post_loop.c
+++ b/src/testcurl/test_post_loop.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
index 289a95de..7534b6b7 100644
--- a/src/testcurl/test_postform.c
+++ b/src/testcurl/test_postform.c
@@ -38,6 +38,7 @@
#include <gcrypt.h>
#endif
#endif /* MHD_HTTPS_REQUIRE_GCRYPT */
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
diff --git a/src/testcurl/test_process_arguments.c
b/src/testcurl/test_process_arguments.c
index 6fea4c10..358b42f4 100644
--- a/src/testcurl/test_process_arguments.c
+++ b/src/testcurl/test_process_arguments.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_process_headers.c
b/src/testcurl/test_process_headers.c
index 9f61d988..8a20d885 100644
--- a/src/testcurl/test_process_headers.c
+++ b/src/testcurl/test_process_headers.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c
index 2eb6bd1c..03881040 100644
--- a/src/testcurl/test_put.c
+++ b/src/testcurl/test_put.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#ifndef WINDOWS
diff --git a/src/testcurl/test_put_broken_len.c
b/src/testcurl/test_put_broken_len.c
index f714eced..f1090b92 100644
--- a/src/testcurl/test_put_broken_len.c
+++ b/src/testcurl/test_put_broken_len.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef _WIN32
#include <sys/socket.h>
diff --git a/src/testcurl/test_put_chunked.c b/src/testcurl/test_put_chunked.c
index 77b684fb..6d55aa27 100644
--- a/src/testcurl/test_put_chunked.c
+++ b/src/testcurl/test_put_chunked.c
@@ -34,6 +34,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
diff --git a/src/testcurl/test_put_header_fold.c
b/src/testcurl/test_put_header_fold.c
index dbfe3f25..a37cea51 100644
--- a/src/testcurl/test_put_header_fold.c
+++ b/src/testcurl/test_put_header_fold.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef _WIN32
#include <sys/socket.h>
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index bce16712..9ba6adaa 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -34,6 +34,7 @@
#include <time.h>
#include <sys/types.h>
#include <pthread.h>
+#include <errno.h>
#include "mhd_sockets.h" /* only macros used */
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
diff --git a/src/testcurl/test_toolarge.c b/src/testcurl/test_toolarge.c
index 60a061e3..36649a76 100644
--- a/src/testcurl/test_toolarge.c
+++ b/src/testcurl/test_toolarge.c
@@ -39,6 +39,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testcurl/test_tricky.c b/src/testcurl/test_tricky.c
index 88ecff02..493b3d69 100644
--- a/src/testcurl/test_tricky.c
+++ b/src/testcurl/test_tricky.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "mhd_has_in_name.h"
#include "mhd_has_param.h"
#include "mhd_sockets.h" /* only macros used */
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index 94a4e833..276b1a5a 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#ifndef WINDOWS
#include <unistd.h>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.