commit 2d0ecf9393d654131534e729ceae79ccc85c164e parent 736fe430cb7d54e40bd65879adf2f4585350a1f3 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 22 Dec 2020 19:48:39 +0300 Refined TCP_NOPUSH handling on OpenBSD Diffstat:
| M | src/microhttpd/mhd_sockets.h | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h @@ -245,6 +245,13 @@ typedef SOCKET MHD_socket; */ #define _MHD_CORK_RESET_PUSH_DATA 1 #endif /* __FreeBSD_version >= 450000 */ +#ifdef __OpenBSD__ +/* OpenBSD took implementation from FreeBSD */ +/** + * Indicate that reset of TCP_CORK / TCP_NOPUSH push data to the network + */ +#define _MHD_CORK_RESET_PUSH_DATA 1 +#endif /* __OpenBSD__ */ #endif /* MHD_TCP_CORK_NOPUSH */ #ifdef __linux__