If alloca.h is available it is required (e.g. on Solaris 10)
authorDagobert Michelsen <dam@opencsw.org>
Wed, 3 Apr 2013 08:38:51 +0000 (10:38 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 3 Apr 2013 11:17:44 +0000 (12:17 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=63071
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
configure.ac
dbus/dbus-sysdeps-unix.c

index 5490cf0..dc083bb 100644 (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
index b4ecc96..fc67799 100644 (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>