libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 08b6c34c92ab43d094df1577c9db16e69e389a64
parent 796eda7161250728b824a5e876e60f96208c46f1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun,  4 Jun 2017 22:28:51 +0300

Moved "include" missing in be855dd3d8c0cf967355e230aa887539ba37a398

Diffstat:
Msrc/microhttpd/connection.c | 3+++
Msrc/microhttpd/daemon.c | 4----
Msrc/microhttpd/internal.h | 4++--
3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -36,6 +36,9 @@ #include "mhd_sockets.h" #include "mhd_compat.h" #include "mhd_itc.h" +#ifdef __linux__ +#include <sys/sendfile.h> +#endif #ifdef HTTPS_SUPPORT #include "connection_https.h" #endif /* HTTPS_SUPPORT */ diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -50,10 +50,6 @@ #include <gcrypt.h> #endif /* HTTPS_SUPPORT */ -#ifdef LINUX -#include <sys/sendfile.h> -#endif - #ifdef _WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -797,13 +797,13 @@ struct MHD_Connection */ uint64_t response_write_position; -#if LINUX +#ifdef __linux__ enum MHD_resp_sender_ { MHD_resp_sender_std = 0, MHD_resp_sender_sendfile } resp_sender; -#endif /* LINUX */ +#endif /* __linux__ */ /** * Position in the 100 CONTINUE message that