summaryrefslogtreecommitdiff
path: root/devel/bmake
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
commitedba9fbd186e4c37aef252251aff68032e71a551 (patch)
treeb789d8ebf97439d95c49e347f31db5f30cf73dd4 /devel/bmake
parent5fa3783bba36fbb2bb3ba69a39e077f58cf933c6 (diff)
downloadpkgsrc-edba9fbd186e4c37aef252251aff68032e71a551.tar.gz
No SA_RESTART on qnx.
Diffstat (limited to 'devel/bmake')
-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;