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.
This commit is contained in:
tron 2011-04-24 11:32:36 +00:00
parent 9ef6767558
commit 8a13bd182a
1 changed files with 3 additions and 1 deletions

View File

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