--- ./lib/tls-support.h_orig	2025-03-03 03:41:23.348615862 -0500
+++ ./lib/tls-support.h	2025-03-03 03:43:09.060137748 -0500
@@ -28,7 +28,7 @@
 
 #include <syslog-ng-config.h>
 
-#ifndef SYSLOG_NG_HAVE_THREAD_KEYWORD
+#if !defined(SYSLOG_NG_HAVE_THREAD_KEYWORD) || defined(_AIX)
 
 #include <stdlib.h>
 #include <pthread.h>
