I'm checking this in.
This comes from a GCC maintainer. fdlibm fails to build on AIX
because 'hz' is defined in some system header there. This patch works
around the problem by undeffing hz.
Tom
ChangeLog:
2008-10-23 David Edelsohn <[EMAIL PROTECTED]>
* native/fdlibm/fdlibm.h: Undef hz.
Index: native/fdlibm/fdlibm.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/fdlibm.h,v
retrieving revision 1.15
diff -u -r1.15 fdlibm.h
--- native/fdlibm/fdlibm.h 13 Sep 2007 19:39:42 -0000 1.15
+++ native/fdlibm/fdlibm.h 24 Oct 2008 15:23:55 -0000
@@ -24,6 +24,14 @@
#include <config.h>
#include <stdlib.h>
+/*
+ * AIX includes a header that defines hz,
+ * which conflicts with an fdlibm variable in some functions.
+ */
+#ifdef _AIX
+#undef hz
+#endif
+
/* GCJ LOCAL: Include files. */
#include "ieeefp.h"
/* CLASSPATH LOCAL: */