pkgsrc/devel/glib2/patches/patch-ag
ahoka 54f48a47e3 Compensate QNX's lack of SA_RESTART flag (It can be safely ignored).
Maybe this could be autoconf (but defining HAVE_SA_RESTART if
SA_RESTART is defined would be awkward (wouldn't it?).
2008-11-30 22:25:01 +00:00

16 lines
420 B
Text

$NetBSD: patch-ag,v 1.17 2008/11/30 22:25:01 ahoka Exp $
--- glib/gtester.c.orig 2008-11-24 06:45:23.000000000 +0100
+++ glib/gtester.c
@@ -636,7 +636,11 @@ main (int argc,
struct sigaction osa;
sa.sa_handler = SIG_DFL;
sigfillset (&sa.sa_mask);
+#ifdef SA_RESTART
sa.sa_flags = SA_RESTART;
+#else /* QNX */
+ sa.sa_flags = 0;
+#endif
sigaction (SIGCHLD, &sa, &osa);
}