From 1157b3039551b552b483f05f6a411e57941a87c0 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Fri, 11 Jan 2013 12:04:16 -0500 Subject: Fix compilation for MinGW Fix compilation for MinGW since 9cbe3256bc932b82f2435b23cda0931f4f5f5ba2 Unfortunately, MinGW doesn't define S_ISLNK, so check for that as well. Signed-off-by: Egbert Eich Reviewed-by: Colin Harrison --- mkfontscale.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkfontscale.c b/mkfontscale.c index b27bb6a..5cf5cb9 100644 --- a/mkfontscale.c +++ b/mkfontscale.c @@ -847,12 +847,16 @@ doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo) tprio = 0; } else #endif +#ifdef S_ISLNK { if (lstat(filename, &f_stat)) goto done; if (S_ISLNK(f_stat.st_mode)) tprio = 0; } +#else + ; +#endif if(doBitmaps) rc = bitmapIdentify(filename, &xlfd_name); else -- cgit v1.2.3