diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/sna/sna_display.c | 4 |
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" |