diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2018-11-16 11:44:54 +0100 |
---|---|---|
committer | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2018-11-27 11:52:12 +0100 |
commit | f9ff53b4945668004be04180c43364cfc1a7d5fe (patch) | |
tree | f52bcc7707337cdf9939f7aa94427144594c24da /tests/torture_pki.c | |
parent | 98487f464b7b44eb9281e4f3c0a5177ec5aa1223 (diff) | |
download | libssh-f9ff53b4945668004be04180c43364cfc1a7d5fe.tar.gz libssh-f9ff53b4945668004be04180c43364cfc1a7d5fe.tar.xz libssh-f9ff53b4945668004be04180c43364cfc1a7d5fe.zip |
tests: Include unistd.h only if available
Include the header in tests/torture_pki.c only if it is available. It
is not available in Windows environment.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/torture_pki.c')
-rw-r--r-- | tests/torture_pki.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/torture_pki.c b/tests/torture_pki.c index 07c01094..f7be636e 100644 --- a/tests/torture_pki.c +++ b/tests/torture_pki.c @@ -4,7 +4,10 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include "torture_pki.h" |