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