[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 58/156: mhd_shutdown_socket_trigger.m4: fixed compiler w
From: |
gnunet |
Subject: |
[libmicrohttpd] 58/156: mhd_shutdown_socket_trigger.m4: fixed compiler warning |
Date: |
Sun, 28 May 2023 17:51:51 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit dd5e1e6c0b7c69ea3e0ca748a664810c200151b5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Mar 3 18:16:21 2023 +0300
mhd_shutdown_socket_trigger.m4: fixed compiler warning
---
m4/mhd_shutdown_socket_trigger.m4 | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/m4/mhd_shutdown_socket_trigger.m4
b/m4/mhd_shutdown_socket_trigger.m4
index 469271b7..33505d81 100644
--- a/m4/mhd_shutdown_socket_trigger.m4
+++ b/m4/mhd_shutdown_socket_trigger.m4
@@ -11,24 +11,37 @@
#
# LICENSE
#
-# Copyright (c) 2017 Karlson2k (Evgeny Grin) <k2k@narod.ru>
+# Copyright (c) 2017-2023 Karlson2k (Evgeny Grin) <k2k@narod.ru>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 3
+#serial 4
AC_DEFUN([MHD_CHECK_SOCKET_SHUTDOWN_TRIGGER],[dnl
AC_PREREQ([2.64])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AX_PTHREAD])dnl
- AC_CHECK_HEADERS([sys/time.h],[AC_CHECK_FUNCS([gettimeofday])],[],
[AC_INCLUDES_DEFAULT])
- dnl AC_CHECK_HEADERS([time.h],[AC_CHECK_FUNCS([nanosleep])],[],
[AC_INCLUDES_DEFAULT])
+ AC_CHECK_HEADERS([sys/time.h time.h])dnl
+ MHD_CHECK_FUNC([[gettimeofday]],
+ [[
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif /* HAVE_SYS_TIME_H */
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif /* HAVE_TIME_H */
+ ]],
+ [[
+ struct timeval tv;
+ if (0 != gettimeofday (&tv, (void*) 0))
+ return 1;
+ ]]
+ )
MHD_CHECK_FUNC([[usleep]], [[#include <unistd.h>]], [[usleep(100000);]])
- dnl AC_CHECK_HEADERS([unistd.h],[AC_CHECK_FUNCS([usleep])],[],
[AC_INCLUDES_DEFAULT])
MHD_CHECK_FUNC([[nanosleep]], [[#include <time.h>]], [[struct timespec ts2,
ts1 = {0, 0}; nanosleep(&ts1, &ts2);]])
AC_CHECK_HEADERS([string.h sys/types.h sys/socket.h netinet/in.h time.h
sys/select.h netinet/tcp.h],[],[], [AC_INCLUDES_DEFAULT])
AC_CACHE_CHECK([[whether shutdown of listen socket triggers select()]],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 46/156: mhd_norm_expd.m4: added autoconf helper macro, (continued)
- [libmicrohttpd] 46/156: mhd_norm_expd.m4: added autoconf helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 55/156: mhd_check_link_run.m4: fixed typo in comment, gnunet, 2023/05/28
- [libmicrohttpd] 48/156: mhd_check_func.m4: fixed overquoting, gnunet, 2023/05/28
- [libmicrohttpd] 47/156: mhd_check_func.m4: fixed English grammar, gnunet, 2023/05/28
- [libmicrohttpd] 51/156: mhd_check_func.m4: added check for function declaration, gnunet, 2023/05/28
- [libmicrohttpd] 54/156: tsearch.{h,c}: updated to the latest fixed version, gnunet, 2023/05/28
- [libmicrohttpd] 50/156: mhd_check_func.m4: updated, gnunet, 2023/05/28
- [libmicrohttpd] 53/156: mhd_find_lib.m4: fixed compatibility with old autoconf, gnunet, 2023/05/28
- [libmicrohttpd] 52/156: mhd_find_lib.m4: added new autoconf macro, gnunet, 2023/05/28
- [libmicrohttpd] 59/156: configure: fixed some compiler warnings for checks, gnunet, 2023/05/28
- [libmicrohttpd] 58/156: mhd_shutdown_socket_trigger.m4: fixed compiler warning,
gnunet <=
- [libmicrohttpd] 61/156: libcurl.m4: patched to fix compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 60/156: libcurl.m4: updated to the latest version, gnunet, 2023/05/28
- [libmicrohttpd] 63/156: configure: fixed more compiler warnings in log, gnunet, 2023/05/28
- [libmicrohttpd] 56/156: configure: fixed checks for tsearch() and related, gnunet, 2023/05/28
- [libmicrohttpd] 57/156: Makefile: fixed build with 'make' without nested vars support, gnunet, 2023/05/28
- [libmicrohttpd] 62/156: configure: fixed checking for system libs, fixed .pc file, gnunet, 2023/05/28
- [libmicrohttpd] 65/156: configure: cosmetics, gnunet, 2023/05/28
- [libmicrohttpd] 64/156: configure: fixed potential compiler warnings, added usage of cache vars, gnunet, 2023/05/28
- [libmicrohttpd] 68/156: mhd_shutdown_socket_trigger.m4: fixed preprocessor conditional, gnunet, 2023/05/28
- [libmicrohttpd] 72/156: HTTPS test: fixed unmatched function declaration, gnunet, 2023/05/28