From fe7b93fb493b76ade13ad74438acbc4d34d2f3bd Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 16 Dec 2009 15:03:58 -0800 Subject: [PATCH] Include alloca.h in tests/drmstat.c when configure detects it Signed-off-by: Alan Coopersmith --- configure.ac | 1 + tests/drmstat.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index d3dc154..b257ccf 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ AC_PROG_CC AC_HEADER_STDC AC_SYS_LARGEFILE +AC_FUNC_ALLOCA PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs) AC_SUBST(PTHREADSTUBS_CFLAGS) diff --git a/tests/drmstat.c b/tests/drmstat.c index ed2aeb6..e2e7523 100644 --- a/tests/drmstat.c +++ b/tests/drmstat.c @@ -28,6 +28,8 @@ * */ +#include "config.h" + #include #include #include @@ -39,6 +41,9 @@ #include #include #include +#ifdef HAVE_ALLOCA_H +# include +#endif #include "xf86drm.h" int sigio_fd; -- 2.7.4