From f9ff53b4945668004be04180c43364cfc1a7d5fe Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Fri, 16 Nov 2018 11:44:54 +0100 Subject: [PATCH] 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 Reviewed-by: Andreas Schneider --- tests/torture_pki.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include + +#ifdef HAVE_UNISTD_H #include +#endif #include "torture_pki.h"