Provide sighandler_t fallback for non-GNU-libc platforms

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Alan Coopersmith 2014-12-23 19:07:12 -08:00 committed by Daniel Vetter
parent f04b9dfba0
commit 95ea5d5c0b
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,8 @@ AC_CHECK_HEADERS([termios.h linux/kd.h sys/kd.h libgen.h])
AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
#include <sys/sysinfo.h>
])
AC_CHECK_TYPES([sighandler_t],[],[],[AC_INCLUDES_DEFAULT
#include <signal.h>])
AC_CHECK_FUNCS([swapctl])
AC_CHECK_FUNCS([asprintf])

View File

@ -1206,6 +1206,10 @@ void igt_waitchildren(void)
#define MAX_SIGNALS 32
#define MAX_EXIT_HANDLERS 10
#ifndef HAVE_SIGHANDLER_T
typedef void (*sighandler_t)(int);
#endif
static struct {
sighandler_t handler;
bool installed;