use autoconf to check for the existence of sys/poll.h

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-11-17 02:57:40 +00:00
parent a638b4a0dc
commit 3b1f69deea
3 changed files with 140 additions and 2 deletions

View File

@@ -285,6 +285,8 @@ AC_FUNC_VPRINTF
AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf])
AC_CHECK_FUNCS([glob])
AC_CHECK_HEADER([sys/poll.h], [HAS_POLL=1],)
AC_SUBST(HAS_POLL)
# https support (in main/http.c) uses funopen on BSD systems,
# fopencookie on linux