From 8a13bd182ae250568672ad79fd01665c83203a99 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 24 Apr 2011 11:32:36 +0000 Subject: [PATCH] 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. --- sys/arch/sparc/include/ieeefp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/include/ieeefp.h b/sys/arch/sparc/include/ieeefp.h index b2dfa4044111..07f37c475307 100644 --- a/sys/arch/sparc/include/ieeefp.h +++ b/sys/arch/sparc/include/ieeefp.h @@ -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 */