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.
This commit is contained in:
he 2011-05-16 07:59:18 +00:00
parent a37153870a
commit 1fd8e2619a
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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 <otto@drijf.net>, 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 @@ __RCSID("$NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $");
#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_HEAD(strtod_round, tc)
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;