diff options
author | seanb <seanb@pkgsrc.org> | 2010-12-21 22:57:44 +0000 |
---|---|---|
committer | seanb <seanb@pkgsrc.org> | 2010-12-21 22:57:44 +0000 |
commit | edba9fbd186e4c37aef252251aff68032e71a551 (patch) | |
tree | b789d8ebf97439d95c49e347f31db5f30cf73dd4 /devel/bmake | |
parent | 5fa3783bba36fbb2bb3ba69a39e077f58cf933c6 (diff) | |
download | pkgsrc-edba9fbd186e4c37aef252251aff68032e71a551.tar.gz |
No SA_RESTART on qnx.
Diffstat (limited to 'devel/bmake')
-rw-r--r-- | devel/bmake/files/util.c | 13 |
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; |