summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authorDalibor Topic <robilad@yahoo.com>2007-09-13 19:39:41 +0000
committerDalibor Topic <robilad@yahoo.com>2007-09-13 19:39:41 +0000
commit8d72818122264ac8dcf8c9a3d37bc0f032756efa (patch)
tree7048f051e9321f09b60d415f1ef9f00b1de91241 /native
parenta35579be283913d17fcb164e2c9e42357fb4982f (diff)
downloadclasspath-8d72818122264ac8dcf8c9a3d37bc0f032756efa.tar.gz
2007-09-13 David P Grove <groved@us.ibm.com>
PR 30275 * native/fdlibm/fdlibm.h [_AIX]: Define _ALL_SOURCE rather than _XOPEN_SOURCE to fix build on AIX 5.
Diffstat (limited to 'native')
-rw-r--r--native/fdlibm/fdlibm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/native/fdlibm/fdlibm.h b/native/fdlibm/fdlibm.h
index bf9f56991..112504e4c 100644
--- a/native/fdlibm/fdlibm.h
+++ b/native/fdlibm/fdlibm.h
@@ -13,9 +13,12 @@
#ifndef __CLASSPATH_FDLIBM_H__
#define __CLASSPATH_FDLIBM_H__
-/* AIX needs _XOPEN_SOURCE */
+/*
+ * On AIX we need _ALL_SOURCE defined to compile/configure native-lib, but can't
+ * have it defined to compile fdlibm. UGH.
+ */
#ifdef _AIX
-#define _XOPEN_SOURCE
+#undef _ALL_SOURCE
#endif
#include <config.h>