From deb03d8a26db1d2995f5e1886d4234eb4c5e7ff1 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 6 Sep 2018 17:32:16 -0700 Subject: [PATCH] fixed UTIL_isLink() for Mac OS-X --- programs/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/util.h b/programs/util.h index 88d04840..8993bf96 100644 --- a/programs/util.h +++ b/programs/util.h @@ -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);