diff src/sysfloat.h @ 26:441bb1e64a06 r19-15b96

Import from CVS: tag r19-15b96
author cvs
date Mon, 13 Aug 2007 08:51:32 +0200
parents 376386a54a3c
children ec9a17fef872
line wrap: on
line diff
--- a/src/sysfloat.h	Mon Aug 13 08:51:05 2007 +0200
+++ b/src/sysfloat.h	Mon Aug 13 08:51:32 2007 +0200
@@ -43,6 +43,17 @@
 
 #include <math.h>
 
+#ifdef HAVE_MATHERR
+/* Work around symbol conflict on Linux/glibc */
+#ifndef DOMAIN
+/* SysV matherr is not defined if _BSD_SOURCE is used, and on Linux X11 */
+/* is compiled with _BSD_SOURCE which can also change the size of other */
+/* types.  The configure test for matherr is broken. */
+/* Bah.  Good riddance to bad rubbish. */
+#undef HAVE_MATHERR
+#endif
+#endif
+
 #ifdef NO_MATHERR
 #undef HAVE_MATHERR
 #endif