Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: fix the MinGW build
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jul 31, 2012
1 parent 7f6b86c commit ed2bc23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/fs.c
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions src/win/winapi.h
Expand Up @@ -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,
Expand Down

0 comments on commit ed2bc23

Please sign in to comment.