From 245dcbdca5374296bdb9c48be6e24bdf6b1c0af7 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 13 Nov 2019 11:19:26 +1100 Subject: Put headers inside ifdef _AIX. Prevents compile errors due to missing definitions (eg va_list) on non-AIX platforms. --- openbsd-compat/port-aix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index fc80dc39f..e1ad3f117 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c @@ -26,6 +26,8 @@ */ #include "includes.h" +#ifdef _AIX + #include "xmalloc.h" #include "sshbuf.h" #include "ssherr.h" @@ -36,8 +38,6 @@ #include "ssh_api.h" #include "log.h" -#ifdef _AIX - #include #if defined(HAVE_NETDB_H) # include -- cgit v1.2.3