Message ID | CAH9D60rATnkcKhr2YaTUzvJUBDuT-sRr-XUWYcb=H6WU3fCD-g@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 11/14/11 19:51, Alen Skondro wrote: > This breaks the mingw64 build with S_ISLNK being unresolved. > > Since windows doesn't know anything about symbolic links, could > something like this help? thanks, Joseph also pointed this out to me. I have a slightly different patch in testing (posix specifies, when provided, IS_LNK to be a macro). I'll be committing a patch shortly, once testing some visibility changes complete.
diff --git a/gcc/config/i386/xm-mingw32.h b/gcc/config/i386/xm-mingw32.h index e0dd3f3..34663ac 100644 --- a/gcc/config/i386/xm-mingw32.h +++ b/gcc/config/i386/xm-mingw32.h @@ -33,3 +33,7 @@ along with GCC; see the file COPYING3. If not see /* MSVCRT does not support the "ll" format specifier for printing "long long" values. Instead, we use "I64". */ #define HOST_LONG_LONG_FORMAT "I64" + +/* Windows doesn't know about symbolic links. */ +#define S_ISLNK(x) false +