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 fc80dc39f..e1ad3f117 100644 --- a/openbsd-compat/port-aix.c +++ b/openbsd-compat/port-aix.c | |||
@@ -26,6 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | 28 | ||
29 | #ifdef _AIX | ||
30 | |||
29 | #include "xmalloc.h" | 31 | #include "xmalloc.h" |
30 | #include "sshbuf.h" | 32 | #include "sshbuf.h" |
31 | #include "ssherr.h" | 33 | #include "ssherr.h" |
@@ -36,8 +38,6 @@ | |||
36 | #include "ssh_api.h" | 38 | #include "ssh_api.h" |
37 | #include "log.h" | 39 | #include "log.h" |
38 | 40 | ||
39 | #ifdef _AIX | ||
40 | |||
41 | #include <errno.h> | 41 | #include <errno.h> |
42 | #if defined(HAVE_NETDB_H) | 42 | #if defined(HAVE_NETDB_H) |
43 | # include <netdb.h> | 43 | # include <netdb.h> |