From 95ea5d5c0b0342ec95899c6d33311b6ff40732b3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 23 Dec 2014 19:07:12 -0800 Subject: Provide sighandler_t fallback for non-GNU-libc platforms Signed-off-by: Alan Coopersmith Signed-off-by: Daniel Vetter --- lib/igt_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/igt_core.c b/lib/igt_core.c index 0f8a5bba..0d0e80cf 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -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; -- cgit v1.2.3