Module Name: src
Committed By: jruoho
Date: Tue May 10 19:18:19 UTC 2011
Modified Files:
src/tests/lib/libc/stdlib: t_strtod.c
Log Message:
Use the same conditional check from <fenv.h> to fix an immediate build error
pointed out by cliff@. (This does not however sound like a sane thing to
mandate from a C99 header.)
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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/tests/lib/libc/stdlib/t_strtod.c
diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.8 src/tests/lib/libc/stdlib/t_strtod.c:1.9
--- src/tests/lib/libc/stdlib/t_strtod.c:1.8 Tue May 10 15:20:19 2011
+++ src/tests/lib/libc/stdlib/t_strtod.c Tue May 10 19:18:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.8 2011/05/10 15:20:19 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,10 +32,9 @@
/* Public domain, Otto Moerbeek <[email protected]>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.8 2011/05/10 15:20:19 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.9 2011/05/10 19:18:19 jruoho Exp $");
#include <errno.h>
-#include <fenv.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
@@ -44,6 +43,10 @@
#include <atf-c.h>
#include <atf-c/config.h>
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
+#include <fenv.h>
+#endif
+
ATF_TC(strtod_basic);
ATF_TC_HEAD(strtod_basic, tc)
{
@@ -133,7 +136,7 @@
ATF_TC_BODY(strtod_round, tc)
{
-#ifndef __vax__
+#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
const char *val;
double d1, d2;