windows: fix the MinGW build

This commit is contained in:
Bert Belder 2012-07-31 17:00:15 +02:00
parent 7f6b86c687
commit ed2bc23346
2 changed files with 6 additions and 1 deletions

View File

@ -726,7 +726,7 @@ void fs__readdir(uv_fs_t* req) {
#ifdef _MSC_VER
swprintf(path2, len + 3, fmt, pathw);
#else
swprintf(path2, fmt, path);
swprintf(path2, fmt, pathw);
#endif
dir = FindFirstFileW(path2, &ent);
free(path2);

View File

@ -4379,6 +4379,11 @@ typedef NTSTATUS (NTAPI *sNtQuerySystemInformation)
# define ENABLE_EXTENDED_FLAGS 0x80
#endif
/* from winerror.h */
#ifndef ERROR_SYMLINK_NOT_SUPPORTED
# define ERROR_SYMLINK_NOT_SUPPORTED 1464
#endif
typedef BOOL (WINAPI *sGetQueuedCompletionStatusEx)
(HANDLE CompletionPort,
LPOVERLAPPED_ENTRY lpCompletionPortEntries,