diff options
author | Egbert Eich <eich@freedesktop.org> | 2013-01-11 12:04:16 -0500 |
---|---|---|
committer | Egbert Eich <eich@freedesktop.org> | 2013-01-11 12:52:33 -0500 |
commit | 1157b3039551b552b483f05f6a411e57941a87c0 (patch) | |
tree | 8dcf8c3ab0013eafa890329d6f16fed19ef8b187 | |
parent | 9cbe3256bc932b82f2435b23cda0931f4f5f5ba2 (diff) |
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 <eich@freedesktop.org>
Reviewed-by: Colin Harrison <colin.harrison at virgin.net>
-rw-r--r-- | mkfontscale.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |