@@ -61,10 +61,15 @@ #if defined(OF_HAVE__THREAD_LOCAL) # define OF_HAVE_COMPILER_TLS # ifdef OF_HAVE_THREADS_H # include +# ifdef OF_AIX +/* AIX has a bug where thread_local is defined to "Thread_local;". */ +# undef thread_local +# define thread_local _Thread_local +# endif # else # define thread_local _Thread_local # endif #elif defined(OF_HAVE___THREAD) # define OF_HAVE_COMPILER_TLS