Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make gcc defines __svr4__
details: https://anonhg.NetBSD.org/src/rev/53ff3f977194
branches: trunk
changeset: 754595:53ff3f977194
user: sjg <sjg%NetBSD.org@localhost>
date: Wed May 05 07:05:33 2010 +0000
description:
gcc defines __svr4__
SunPro compiler defines __SVR4
We need to check both to ensure that on SunOS signal is hooked into
sigaction - otherwise we do not pass the unit-tests due to missing
a SIGCHLD
diffstat:
usr.bin/make/util.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 2962509a2faa -r 53ff3f977194 usr.bin/make/util.c
--- a/usr.bin/make/util.c Wed May 05 06:55:57 2010 +0000
+++ b/usr.bin/make/util.c Wed May 05 07:05:33 2010 +0000
@@ -1,15 +1,15 @@
-/* $NetBSD: util.c,v 1.48 2009/01/29 09:03:04 dholland Exp $ */
+/* $NetBSD: util.c,v 1.49 2010/05/05 07:05:33 sjg Exp $ */
/*
* Missing stuff from OS's
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: util.c,v 1.48 2009/01/29 09:03:04 dholland Exp $";
+static char rcsid[] = "$NetBSD: util.c,v 1.49 2010/05/05 07:05:33 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.48 2009/01/29 09:03:04 dholland Exp $");
+__RCSID("$NetBSD: util.c,v 1.49 2010/05/05 07:05:33 sjg Exp $");
#endif
#endif
@@ -370,7 +370,7 @@
} /* end getwd */
#endif /* __hpux */
-#if defined(sun) && defined(__svr4__)
+#if defined(sun) && (defined(__svr4__) || defined(__SVR4))
#include <signal.h>
/* turn into bsd signals */
Home |
Main Index |
Thread Index |
Old Index