File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2162,9 +2162,11 @@ int symlink(const char *target, const char *link)
2162
2162
return 0 ;
2163
2163
}
2164
2164
2165
+ #ifndef _WINNT_H
2165
2166
/*
2166
- * The REPARSE_DATA_BUFFER structure is only defined in the Windows DDK (in
2167
- * Ntifs.h), so we have to define it ourselves.
2167
+ * The REPARSE_DATA_BUFFER structure is defined in the Windows DDK (in
2168
+ * ntifs.h) and in MSYS1's winnt.h (which defines _WINNT_H). So define
2169
+ * it ourselves if we are on MSYS2 (whose winnt.h defines _WINNT_).
2168
2170
*/
2169
2171
typedef struct _REPARSE_DATA_BUFFER {
2170
2172
DWORD ReparseTag ;
@@ -2191,6 +2193,7 @@ typedef struct _REPARSE_DATA_BUFFER {
2191
2193
} GenericReparseBuffer ;
2192
2194
} DUMMYUNIONNAME ;
2193
2195
} REPARSE_DATA_BUFFER , * PREPARSE_DATA_BUFFER ;
2196
+ #endif
2194
2197
2195
2198
int readlink (const char * path , char * buf , size_t bufsiz )
2196
2199
{
You can’t perform that action at this time.
0 commit comments