diff --git a/src/hotspot/share/prims/forte.cpp b/src/hotspot/share/prims/forte.cpp index cb247ef135f..f5cb688b99a 100644 --- a/src/hotspot/share/prims/forte.cpp +++ b/src/hotspot/share/prims/forte.cpp @@ -667,7 +667,7 @@ void AsyncGetCallTrace(ASGCT_CallTrace *trace, jint depth, void* ucontext) { // Method to let libcollector know about a dynamically loaded function. // Because it is weakly bound, the calls become NOP's when the library // isn't present. -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(_AIX) // XXXDARWIN: Link errors occur even when __attribute__((weak_import)) // is added #define collector_func_load(x0,x1,x2,x3,x4,x5,x6) ((void) 0) @@ -684,7 +684,7 @@ void collector_func_load(char* name, #define collector_func_load(x0,x1,x2,x3,x4,x5,x6) \ ( collector_func_load ? collector_func_load(x0,x1,x2,x3,x4,x5,x6),(void)0 : (void)0 ) #define collector_func_load_enabled() (collector_func_load ? true : false) -#endif // __APPLE__ +#endif // __APPLE__ || _AIX #endif // !_WINDOWS } // end extern "C"