summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-03-25 13:16:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-03-25 13:16:56 +0000
commitd85e68e2d310a5646e4e71a06edf2b21b1d18688 (patch)
tree7462104d2b50a1be610130731e4d820053c4579d
parentd377fd3d11a6ed29f8bce9e7b05a8db82e33764e (diff)
sna: Add include <alloca.h> for compiling on Solaris
Reported-by: Richard Palo <richard@netbsd.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89762 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--configure.ac2
-rw-r--r--src/sna/sna_display.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9aadc73e..1bb64fc7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -416,7 +416,7 @@ AC_ARG_ENABLE(sna,
[SNA="$enableval"],
[SNA=auto])
-AC_CHECK_HEADERS([dev/wscons/wsconsio.h])
+AC_CHECK_HEADERS([dev/wscons/wsconsio.h alloca.h])
if test "x$SNA" != "xno"; then
AC_DEFINE(USE_SNA, 1, [Enable SNA support])
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 3ea34368..cee4a726 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -40,6 +40,10 @@
#include <poll.h>
#include <ctype.h>
+#if HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
#include "sna.h"
#include "sna_reg.h"
#include "fb/fbpict.h"