Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/include Don't define "fenv_t" and "fexcept_t"...
details: https://anonhg.NetBSD.org/src/rev/943fd7fcb4ca
branches: trunk
changeset: 764454:943fd7fcb4ca
user: tron <tron%NetBSD.org@localhost>
date: Sun Apr 24 11:32:36 2011 +0000
description:
Don't define "fenv_t" and "fexcept_t" for NetBSD/sparc64 because the
definitions clash with "/usr/include/sparc64/fenv.h".
This fixes the build of e.g. "pkgsrc/databases/mysql51-client" under
NetBSD/sparc64 current.
diffstat:
sys/arch/sparc/include/ieeefp.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 67c0ce6f6a8b -r 943fd7fcb4ca sys/arch/sparc/include/ieeefp.h
--- a/sys/arch/sparc/include/ieeefp.h Sun Apr 24 07:18:59 2011 +0000
+++ b/sys/arch/sparc/include/ieeefp.h Sun Apr 24 11:32:36 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieeefp.h,v 1.5 2008/08/05 16:47:42 matt Exp $ */
+/* $NetBSD: ieeefp.h,v 1.6 2011/04/24 11:32:36 tron Exp $ */
/*
* Written by J.T. Conklin, Apr 6, 1995
@@ -12,8 +12,10 @@
#if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE)
+#if !defined(__sparc64__)
typedef int fenv_t;
typedef int fexcept_t;
+#endif
#define FE_INEXACT 0x01 /* imprecise (loss of precision) */
#define FE_DIVBYZERO 0x02 /* divide-by-zero exception */
Home |
Main Index |
Thread Index |
Old Index