--- ./lib/tls-support.h_orig	2026-01-08 01:27:47.280864882 -0500
+++ ./lib/tls-support.h	2026-01-08 01:32:27.052114671 -0500
@@ -28,7 +28,7 @@
 
 #include <syslog-ng-config.h>
 
-#if ! SYSLOG_NG_HAVE_THREAD_KEYWORD
+#if !defined(SYSLOG_NG_HAVE_THREAD_KEYWORD) || defined(_AIX)
 
 #include <stdlib.h>
 #include <pthread.h>
