mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-11 17:22:40 +03:00
tests: Include config.h in torture_pki.c
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -7,6 +9,12 @@
|
|||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#elif (defined _WIN32) || (defined _WIN64)
|
||||||
|
#include <io.h>
|
||||||
|
#define read _read
|
||||||
|
#define open _open
|
||||||
|
#define write _write
|
||||||
|
#define close _close
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "torture_pki.h"
|
#include "torture_pki.h"
|
||||||
|
Reference in New Issue
Block a user