]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
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 5490cf02addc3a62ad5d01b6be46422b9c658270..dc083bb69145740526f6c72e4742371adf8af8a2 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 b4ecc96e78ddd477ecb19828f1e114db443e4a0e..fc67799059b996e959322db9f20bbcfb92ee4f60 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>