Module Name:    src
Committed By:   tron
Date:           Sun Apr 24 11:32:36 UTC 2011

Modified Files:
        src/sys/arch/sparc/include: ieeefp.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/sparc/include/ieeefp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/include/ieeefp.h
diff -u src/sys/arch/sparc/include/ieeefp.h:1.5 src/sys/arch/sparc/include/ieeefp.h:1.6
--- src/sys/arch/sparc/include/ieeefp.h:1.5	Tue Aug  5 16:47:42 2008
+++ src/sys/arch/sparc/include/ieeefp.h	Sun Apr 24 11:32:36 2011
@@ -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 */

Reply via email to