diff --git a/configure.ac b/configure.ac index 89b953d..38dd4a2 100644 --- configure.ac +++ configure.ac @@ -55,6 +55,9 @@ sdkdir=$(pkg-config --variable=sdkdir xorg-server) # Header files checks. AC_HEADER_STDC +# Check if we have an alloca.h on this platform +AC_CHECK_HEADERS([alloca.h]) + PKG_CHECK_MODULES(PCIUTILS, libpci,, [AC_MSG_WARN([libpci not registered in pkgconfig, will guess instead]) test "x$PCIUTILS_CFLAGS$PCIUTILS_LIBS" = "x" && PCIUTILS_LIBS="-lpci -lz" diff --git a/utils/conntest/rhd_conntest.c b/utils/conntest/rhd_conntest.c index 9e2a0ae..8917a7a 100644 --- utils/conntest/rhd_conntest.c +++ utils/conntest/rhd_conntest.c @@ -38,11 +38,15 @@ #include #include #include -#include #ifdef HAVE_CONFIG_H # include "config.h" #endif + +#ifdef HAVE_ALLOCA_H +#include +#endif + #include "git_version.h" #ifndef ULONG