In classpath/native/fdlibm/fdlibm.h there's the following hack for AIX 4.x that
was put in for Jikes RVM.  We no longer need this (and on AIX 5.x it means that
classpath doesn't build without manually removing it). 

/* AIX needs _XOPEN_SOURCE */
#ifdef _AIX
#define _XOPEN_SOURCE
#endif


Here's a patch to remove it:

--- fdlibm.h    2006-12-21 10:24:14.430080698 -0500
+++ fdlibm.h.ORIG       2006-12-21 10:24:03.634814660 -0500
@@ -13,6 +13,11 @@
 #ifndef __CLASSPATH_FDLIBM_H__
 #define __CLASSPATH_FDLIBM_H__



--- fdlibm.h.ORIG       2006-12-21 10:24:03.634814660 -0500
+++ fdlibm.h    2006-12-21 10:24:14.430080698 -0500
@@ -13,11 +13,6 @@
 #ifndef __CLASSPATH_FDLIBM_H__
 #define __CLASSPATH_FDLIBM_H__

-/* AIX needs _XOPEN_SOURCE */
-#ifdef _AIX
-#define _XOPEN_SOURCE
-#endif
-
 #include <config.h>
 #include <stdlib.h>


-- 
           Summary: remove AIX hack in fdlibm.h
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: groved at us dot ibm dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30275



_______________________________________________
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath

Reply via email to