If alloca.h is available it is required (e.g. on Solaris 10)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63071
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
Dagobert Michelsen 2013-04-03 10:38:51 +02:00 committed by Simon McVittie
parent 74b4c3ac94
commit 6485fafbca
2 changed files with 5 additions and 0 deletions

View file

@ -686,6 +686,8 @@ AC_CHECK_HEADERS(ws2tcpip.h)
AC_CHECK_HEADERS(wspiapi.h)
AC_CHECK_HEADERS(alloca.h)
# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
#
case $host_os in

View file

@ -71,6 +71,9 @@
#ifdef HAVE_GETPEERUCRED
#include <ucred.h>
#endif
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#ifdef HAVE_ADT
#include <bsm/adt.h>