gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 07/08: configure: removed sys/types.h duplicated check


From: gnunet
Subject: [libmicrohttpd] 07/08: configure: removed sys/types.h duplicated check
Date: Wed, 01 Sep 2021 10:23:40 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

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

    configure: removed sys/types.h duplicated check
---
 configure.ac             | 2 +-
 src/microhttpd/mhd_str.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c2c5e44d..f08302de 100644
--- 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
index a03dc49f..4a72e35e 100644
--- 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 */

-- 
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]