summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorseanb <seanb@pkgsrc.org>2010-12-21 22:57:44 +0000
committerseanb <seanb@pkgsrc.org>2010-12-21 22:57:44 +0000
commit38bf12b8eaca59e9e42d8fdaeeb0519e0539c34e (patch)
treeb789d8ebf97439d95c49e347f31db5f30cf73dd4 /devel
parent0d34d8e5e4559d0a380da11395dd415f01d0a026 (diff)
downloadpkgsrc-38bf12b8eaca59e9e42d8fdaeeb0519e0539c34e.tar.gz
No SA_RESTART on qnx.
Diffstat (limited to 'devel')
-rw-r--r--devel/bmake/files/util.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/devel/bmake/files/util.c b/devel/bmake/files/util.c
index 9158fa76fcc..4617a1118ab 100644
--- a/devel/bmake/files/util.c
+++ b/devel/bmake/files/util.c
@@ -1,18 +1,18 @@
-/* $NetBSD: util.c,v 1.8 2010/09/07 14:28:01 joerg Exp $ */
+/* $NetBSD: util.c,v 1.9 2010/12/21 22:57:44 seanb Exp $ */
/*
* Missing stuff from OS's
*
- * $Id: util.c,v 1.8 2010/09/07 14:28:01 joerg Exp $
+ * $Id: util.c,v 1.9 2010/12/21 22:57:44 seanb Exp $
*/
#include "make.h"
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: util.c,v 1.8 2010/09/07 14:28:01 joerg Exp $";
+static char rcsid[] = "$NetBSD: util.c,v 1.9 2010/12/21 22:57:44 seanb Exp $";
#else
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.8 2010/09/07 14:28:01 joerg Exp $");
+__RCSID("$NetBSD: util.c,v 1.9 2010/12/21 22:57:44 seanb Exp $");
#endif
#endif
@@ -376,7 +376,10 @@ bmake_signal(int s, void (*a)(int)))(int)
sa.sa_handler = a;
sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESTART;
+ sa.sa_flags = 0;
+#ifdef SA_RESTART
+ sa.sa_flags |= SA_RESTART;
+#endif
if (sigaction(s, &sa, &osa) == -1)
return SIG_ERR;