mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
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:
parent
f04b9dfba0
commit
95ea5d5c0b
@ -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])
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user