Don't include unistd.h in sconnect for windows

The platform doesn't support it

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/24047)
This commit is contained in:
Neil Horman 2024-04-06 16:30:50 -04:00
parent 7acdd776e3
commit 3b56cd4f04
1 changed files with 6 additions and 1 deletions

View File

@ -16,11 +16,16 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#if !defined(OPENSSL_SYS_WINDOWS)
#include <unistd.h>
#else
#include <windows.h>
# define sleep(x) Sleep(x*1000)
#endif
#define HOSTPORT "localhost:4433"
#define CAFILE "root.pem"