Module Name: src
Committed By: he
Date: Mon May 16 07:59:19 UTC 2011
Modified Files:
src/include: fenv.h
src/tests/lib/libc/stdlib: t_strtod.c
Log Message:
The support of <fenv.h> is actually for __sparc64__, not for __sparc__
(which is also defined on sparc64). This fixes a build problem for
plain sparc.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/include/fenv.h
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/stdlib/t_strtod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/fenv.h
diff -u src/include/fenv.h:1.3 src/include/fenv.h:1.4
--- src/include/fenv.h:1.3 Mon Jan 31 00:19:33 2011
+++ src/include/fenv.h Mon May 16 07:59:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.3 2011/01/31 00:19:33 christos Exp $ */
+/* $NetBSD: fenv.h,v 1.4 2011/05/16 07:59:19 he Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#if !defined(__i386__) && !defined(__amd64__) && !defined(__sparc__)
+#if !defined(__i386__) && !defined(__amd64__) && !defined(__sparc64__)
#error "fenv.h is currently not supported for this architecture"
#endif
Index: src/tests/lib/libc/stdlib/t_strtod.c
diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.9 src/tests/lib/libc/stdlib/t_strtod.c:1.10
--- src/tests/lib/libc/stdlib/t_strtod.c:1.9 Tue May 10 19:18:19 2011
+++ src/tests/lib/libc/stdlib/t_strtod.c Mon May 16 07:59:18 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.10 2011/05/16 07:59:18 he Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/* Public domain, Otto Moerbeek <[email protected]>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.10 2011/05/16 07:59:18 he Exp $");
#include <errno.h>
#include <math.h>
@@ -43,7 +43,7 @@
#include <atf-c.h>
#include <atf-c/config.h>
-#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__)
#include <fenv.h>
#endif
@@ -136,7 +136,7 @@
ATF_TC_BODY(strtod_round, tc)
{
-#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc64__)
const char *val;
double d1, d2;