libmicrohttpd

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

commit c4633c32c14ea1de8251cdb94da40b1f654fcde2
parent 70c1dbb15bba2a92a92181ed5917b334d29a60c5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 18 May 2023 19:56:42 +0300

Added specific headers inclusion and detection

This is a workaround for headers mess on Solaris

Diffstat:
Mconfigure.ac | 10++++++++--
Msrc/microhttpd/test_client_put_stop.c | 3+++
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -496,8 +496,8 @@ AC_CHECK_HEADERS([endian.h machine/endian.h sys/endian.h sys/byteorder.h \ sys/ioctl.h], [], [], [AC_INCLUDES_DEFAULT]) # Check for network and sockets optional headers -AC_CHECK_HEADERS([sys/socket.h sys/select.h netinet/in.h arpa/inet.h \ - netinet/ip.h netinet/tcp.h net/if.h \ +AC_CHECK_HEADERS([sys/socket.h sys/select.h netinet/in_systm.h netinet/in.h \ + arpa/inet.h netinet/ip.h netinet/tcp.h net/if.h \ netdb.h sockLib.h inetLib.h], [], [], [AC_INCLUDES_DEFAULT [ @@ -510,6 +510,9 @@ AC_CHECK_HEADERS([sys/socket.h sys/select.h netinet/in.h arpa/inet.h \ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif /* HAVE_SYS_SOCKET_H */ +#ifdef HAVE_NETINET_IN_SYSTM_H +#include <netinet/in_systm.h> +#endif /* HAVE_NETINET_IN_SYSTM_H */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */ @@ -658,6 +661,9 @@ AC_CHECK_HEADERS([sys/sysctl.h netinet/ip_icmp.h netinet/icmp_var.h], [], [], #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif /* HAVE_SYS_SOCKET_H */ +#ifdef HAVE_NETINET_IN_SYSTM_H +#include <netinet/in_systm.h> +#endif /* HAVE_NETINET_IN_SYSTM_H */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */ diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c @@ -65,6 +65,9 @@ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif /* HAVE_SYS_SOCKET_H */ +#ifdef HAVE_NETINET_IN_SYSTM_H +#include <netinet/in_systm.h> +#endif /* HAVE_NETINET_IN_SYSTM_H */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */