]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed UTIL_isLink() for Mac OS-X 1309/head
authorYann Collet <cyan@fb.com>
Fri, 7 Sep 2018 00:32:16 +0000 (17:32 -0700)
committerYann Collet <cyan@fb.com>
Fri, 7 Sep 2018 00:32:16 +0000 (17:32 -0700)
programs/util.h

index 88d048409d17c137fccca254d18df4c20bfa0986..8993bf964fd933eeb0e898bcaf48a3fb0ca132c0 100644 (file)
@@ -323,7 +323,8 @@ UTIL_STATIC U32 UTIL_isLink(const char* infilename)
 #if defined(_BSD_SOURCE) \
     || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)) \
     || (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) \
-    || (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L))
+    || (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)) \
+    || (defined(__APPLE__) && defined(__MACH__))
     int r;
     stat_t statbuf;
     r = lstat(infilename, &statbuf);