Include alloca.h in tests/drmstat.c when configure detects it

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
main
Alan Coopersmith 2009-12-16 15:03:58 -08:00
parent 3d3d87f3a7
commit fe7b93fb49
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -28,6 +28,8 @@
*
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@ -39,6 +41,9 @@
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#endif
#include "xf86drm.h"
int sigio_fd;