check for paccept in configure.ac

This commit is contained in:
hyung-hwan 2021-07-25 14:16:04 +00:00
parent e643adbd42
commit 5294db4d20
5 changed files with 8 additions and 5 deletions

View File

@ -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)

2
hio/configure vendored
View File

@ -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"

View File

@ -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"])

View File

@ -235,6 +235,9 @@
/* Define to 1 if you have the <openssl/ssl.h> 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

View File

@ -34,7 +34,7 @@
#if defined(HAVE_SYS_EVENT_H) && defined(HAVE_KQUEUE) && defined(HAVE_KEVENT)
# include <sys/event.h>
# define USE_KQUEUE
#if defined(HAVE_SYS_EPOLL_H)
#elif defined(HAVE_SYS_EPOLL_H)
# include <sys/epoll.h>
# define USE_EPOLL
#elif defined(HAVE_SYS_POLL_H)