diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-11-13 11:19:26 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-11-13 11:19:26 +1100 |
commit | 245dcbdca5374296bdb9c48be6e24bdf6b1c0af7 (patch) | |
tree | f4e145fb0e17e82ec4231c62f5cb35f1a7867f75 | |
parent | a4cc579c6ad2b2e54bdd6cc0d5e12c2288113a56 (diff) |
Put headers inside ifdef _AIX.
Prevents compile errors due to missing definitions (eg va_list) on
non-AIX platforms.
-rw-r--r-- | openbsd-compat/port-aix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c index fc80dc39..e1ad3f11 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 <errno.h> #if defined(HAVE_NETDB_H) # include <netdb.h> |