mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
keyfiles: Fixed the windows defines.
This commit is contained in:
@@ -33,17 +33,18 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifdef _WIN32
|
||||||
#if _MSC_VER >= 1400
|
# if _MSC_VER >= 1400
|
||||||
#include <io.h>
|
# include <io.h>
|
||||||
#undef open
|
# undef open
|
||||||
#define open _open
|
# define open _open
|
||||||
#undef close
|
# undef close
|
||||||
#define close _close
|
# define close _close
|
||||||
#undef read
|
# undef read
|
||||||
#define read _read
|
# define read _read
|
||||||
#endif /* _MSC_VER */
|
# endif /* _MSC_VER */
|
||||||
#include <arpa/inet.h>
|
#else
|
||||||
|
# include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user