libmicrohttpd

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

commit 2452f03c3f665079af4154b0b51c9e5fe276e0f9
parent b21d5bbac143440864eddad5be63f27774e055fe
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  1 Sep 2021 11:03:05 +0300

configure: removed sys/types.h duplicated check

Diffstat:
Mconfigure.ac | 2+-
Msrc/microhttpd/mhd_str.h | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -1050,7 +1050,7 @@ fd = epoll_create1(EPOLL_CLOEXEC);]])], AC_DEFINE([[HAVE_EPOLL_CREATE1]], [[1]], [Define if you have epoll_create1 function.])])) # Check for headers that are ALWAYS required -AC_CHECK_HEADERS_ONCE([fcntl.h errno.h limits.h stdio.h sys/types.h], [], +AC_CHECK_HEADERS_ONCE([fcntl.h errno.h limits.h stdio.h], [], [AC_MSG_ERROR([Compiling libmicrohttpd requires standard UNIX headers files])], [AC_INCLUDES_DEFAULT]) # Check for optional headers diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h @@ -31,7 +31,9 @@ #ifdef HAVE_STDDEF_H #include <stddef.h> #endif /* HAVE_STDDEF_H */ +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif /* HAVE_SYS_TYPES_H */ #ifdef HAVE_STDBOOL_H #include <stdbool.h> #endif /* HAVE_STDBOOL_H */