--- ./config.c.orig 2021-06-02 07:50:16 +0000 +++ ./config.c 2021-06-02 07:50:53 +0000 @@ -28,6 +28,11 @@ #include "log.h" #include "logrotate.h" +#if defined(_AIX) +#define TAILQ_LAST(head, headname) \ + (*(((struct headname *)((head)->tqh_last))->tqh_last)) +#endif + struct logInfoHead logs; #if !defined(GLOB_ABORTED) && defined(GLOB_ABEND)