fixup! mingw: Fix the MSYS1 build

Let's really fix up the appropriate commit, to facilitate later upstream
submission.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2015-05-28 18:44:43 +02:00
parent f071ac83f7
commit f8952c23fd

View File

@@ -2162,11 +2162,9 @@ int symlink(const char *target, const char *link)
return 0;
}
#ifndef _WINNT_H
/*
* The REPARSE_DATA_BUFFER structure is defined in the Windows DDK (in
* ntifs.h) and in MSYS1's winnt.h (which defines _WINNT_H). So define
* it ourselves if we are on MSYS2 (whose winnt.h defines _WINNT_).
* The REPARSE_DATA_BUFFER structure is only defined in the Windows DDK (in
* Ntifs.h), so we have to define it ourselves.
*/
typedef struct _REPARSE_DATA_BUFFER {
DWORD ReparseTag;
@@ -2193,7 +2191,6 @@ typedef struct _REPARSE_DATA_BUFFER {
} GenericReparseBuffer;
} DUMMYUNIONNAME;
} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
#endif
int readlink(const char *path, char *buf, size_t bufsiz)
{