gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: Moved "include" missing in be855dd3d


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: Moved "include" missing in be855dd3d8c0cf967355e230aa887539ba37a398
Date: Sun, 04 Jun 2017 21:33:06 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 08b6c34c92ab43d094df1577c9db16e69e389a64
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jun 4 22:28:51 2017 +0300

    Moved "include" missing in be855dd3d8c0cf967355e230aa887539ba37a398
---
 src/microhttpd/connection.c | 3 +++
 src/microhttpd/daemon.c     | 4 ----
 src/microhttpd/internal.h   | 4 ++--
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index fd74207c..bcc0f2cb 100644
--- 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
index 2391eb79..0fd478c2 100644
--- 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
index 7cb70b42..72a8f7f9 100644
--- 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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]