summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-12-23 19:07:12 -0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-06 09:29:45 +0100
commit95ea5d5c0b0342ec95899c6d33311b6ff40732b3 (patch)
tree998b6b7d7f48d12e78ae7e68dcd7cf6affbced99 /lib
parentf04b9dfba00b724879b0310a5d1442196afcc24e (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')
-rw-r--r--lib/igt_core.c4
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;