keyfiles: Fixed the windows defines.

This commit is contained in:
Andreas Schneider
2010-09-28 19:06:49 +02:00
parent a2fe4b2b2c
commit 8c318fcb21

View File

@@ -33,7 +33,7 @@
#include <string.h>
#include <stdlib.h>
#ifndef _WIN32
#ifdef _WIN32
# if _MSC_VER >= 1400
# include <io.h>
# undef open
@@ -43,6 +43,7 @@
# undef read
# define read _read
# endif /* _MSC_VER */
#else
# include <arpa/inet.h>
#endif