From 5294db4d20fc1132009483dc15c68970670535c3 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 25 Jul 2021 14:16:04 +0000 Subject: [PATCH] check for paccept in configure.ac --- hio/Makefile.in | 4 ++-- hio/configure | 2 +- hio/configure.ac | 2 +- hio/lib/hio-cfg.h.in | 3 +++ hio/lib/sys-prv.h | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hio/Makefile.in b/hio/Makefile.in index 264116b..ef5bab5 100644 --- a/hio/Makefile.in +++ b/hio/Makefile.in @@ -165,8 +165,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/ac/ar-lib \ $(top_srcdir)/ac/config.sub $(top_srcdir)/ac/install-sh \ $(top_srcdir)/ac/ltmain.sh $(top_srcdir)/ac/missing \ $(top_srcdir)/pkgs/hio.spec.in ac/ar-lib ac/compile \ - ac/config.guess ac/config.sub ac/install-sh ac/ltmain.sh \ - ac/missing + ac/config.guess ac/config.sub ac/depcomp ac/install-sh \ + ac/ltmain.sh ac/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) diff --git a/hio/configure b/hio/configure index a4f2a49..929af2c 100755 --- a/hio/configure +++ b/hio/configure @@ -14187,7 +14187,7 @@ _ACEOF fi done -for ac_func in pipe2 accept4 sendmsg recvmsg writev readv +for ac_func in pipe2 accept4 paccept sendmsg recvmsg writev readv do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/hio/configure.ac b/hio/configure.ac index 91464f5..7b7f121 100644 --- a/hio/configure.ac +++ b/hio/configure.ac @@ -137,7 +137,7 @@ AC_CHECK_FUNCS([backtrace backtrace_symbols]) AC_CHECK_FUNCS([fork vfork posix_spawn gettid nanosleep select]) AC_CHECK_FUNCS([makecontext swapcontext getcontext setcontext]) AC_CHECK_FUNCS([snprintf _vsnprintf _vsnwprintf]) -AC_CHECK_FUNCS([pipe2 accept4 sendmsg recvmsg writev readv]) +AC_CHECK_FUNCS([pipe2 accept4 paccept sendmsg recvmsg writev readv]) AC_CHECK_FUNCS([isatty mmap munmap]) AC_CHECK_LIB([rt], [clock_gettime], [LIBS="$LIBS -lrt"]) diff --git a/hio/lib/hio-cfg.h.in b/hio/lib/hio-cfg.h.in index bff9209..67e353d 100644 --- a/hio/lib/hio-cfg.h.in +++ b/hio/lib/hio-cfg.h.in @@ -235,6 +235,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_SSL_H +/* Define to 1 if you have the `paccept' function. */ +#undef HAVE_PACCEPT + /* Define to 1 if you have the `pipe2' function. */ #undef HAVE_PIPE2 diff --git a/hio/lib/sys-prv.h b/hio/lib/sys-prv.h index 9b0e174..54f6a97 100644 --- a/hio/lib/sys-prv.h +++ b/hio/lib/sys-prv.h @@ -34,7 +34,7 @@ #if defined(HAVE_SYS_EVENT_H) && defined(HAVE_KQUEUE) && defined(HAVE_KEVENT) # include # define USE_KQUEUE -#if defined(HAVE_SYS_EPOLL_H) +#elif defined(HAVE_SYS_EPOLL_H) # include # define USE_EPOLL #elif defined(HAVE_SYS_POLL_H)