gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 03/03: Added support for GNU/kFreeBSD in sockets functio


From: gnunet
Subject: [libmicrohttpd] 03/03: Added support for GNU/kFreeBSD in sockets functions
Date: Mon, 10 Jan 2022 13:21:40 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit a623db03b883812c6087130de8b314d0f80287b0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jan 10 15:14:08 2022 +0300

    Added support for GNU/kFreeBSD in sockets functions
---
 src/microhttpd/mhd_sockets.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index d09cc522..fb404891 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -126,7 +126,7 @@ typedef intptr_t ssize_t;
 #endif
 
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/param.h> /* For __FreeBSD_version */
 #endif /* __FreeBSD__ */
 
@@ -204,7 +204,8 @@ typedef SOCKET MHD_socket;
 #  define USE_ACCEPT4 1
 #endif
 
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
+  defined(__OpenBSD__) || defined(__NetBSD__) || \
   defined(MHD_WINSOCK_SOCKETS) || defined(__MACH__) || defined(__sun) || \
   defined(SOMEBSD)
 /* Most of OSes inherit nonblocking setting from the listen socket */
@@ -248,8 +249,10 @@ typedef SOCKET MHD_socket;
  */
 #define _MHD_CORK_RESET_PUSH_DATA_ALWAYS 1
 #endif /* __linux__ */
-#if defined(__FreeBSD__) && \
-  ((__FreeBSD__ + 0) >= 5 || (__FreeBSD_version + 0) >= 450000)
+#if (defined(__FreeBSD__) && \
+  ((__FreeBSD__ + 0) >= 5 || (__FreeBSD_version + 0) >= 450000)) || \
+  (defined(__FreeBSD_kernel_version) && \
+  (__FreeBSD_kernel_version + 0) >= 450000)
 /* FreeBSD pushes data to the network with reset of TCP_NOPUSH
  * starting from version 4.5. */
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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