From 116bd314cb8bb169336b2a14ff5ced78d9de9047 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 10 Apr 2019 13:22:43 +0200 Subject: [PATCH] configure: check for pselect --- configure | 2 +- configure.ac | 2 +- include/configure.h.in | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 53f5023d9..cced7bd3d 100755 --- a/configure +++ b/configure @@ -6634,7 +6634,7 @@ $as_echo "#define _REENTRANT 1" >>confdefs.h ################################################################################ for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r \ - memchr memset mkdir mkfifo munmap nl_langinfo realpath rmdir setenv \ + memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \ setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \ strrchr strspn strstr strtol strtoul uname do : diff --git a/configure.ac b/configure.ac index 98a39f689..1e45c0edc 100644 --- a/configure.ac +++ b/configure.ac @@ -153,7 +153,7 @@ AC_DEFINE([_REENTRANT], 1, [Define to use re-entrant thread safe versions]) ################################################################################ dnl -- Check for functions AC_CHECK_FUNCS([ftruncate gethostname getpagesize gettimeofday localtime_r \ - memchr memset mkdir mkfifo munmap nl_langinfo realpath rmdir setenv \ + memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \ setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \ strrchr strspn strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)]) AC_FUNC_ALLOCA diff --git a/include/configure.h.in b/include/configure.h.in index dde55fe5f..ce4c326b9 100644 --- a/include/configure.h.in +++ b/include/configure.h.in @@ -292,6 +292,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_PATHS_H +/* Define to 1 if you have the `pselect' function. */ +#undef HAVE_PSELECT + +/* Define to 1 if you have the header file. */ +#undef HAVE_PTHREAD_H + /* Define to 1 if the system has the type `ptrdiff_t'. */ #undef HAVE_PTRDIFF_T