diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-23 19:07:12 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-06 09:29:45 +0100 |
commit | 95ea5d5c0b0342ec95899c6d33311b6ff40732b3 (patch) | |
tree | 998b6b7d7f48d12e78ae7e68dcd7cf6affbced99 /lib/igt_core.c | |
parent | f04b9dfba00b724879b0310a5d1442196afcc24e (diff) |
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>
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r-- | lib/igt_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |