Ticket #59808: patch-cmake-3-16-libuv-tiger.diff
File patch-cmake-3-16-libuv-tiger.diff, 1.4 KB (added by ballapete (Peter "Pete" Dyballa), 5 years ago) |
---|
-
Utilities/cmlibuv/src/unix/core.c
old new 1306 1306 if (name == NULL) 1307 1307 return UV_EINVAL; 1308 1308 1309 #if ( defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050) 1310 unsetenv(name); 1311 #else 1309 1312 if (unsetenv(name) != 0) 1310 1313 return UV__ERR(errno); 1311 1314 #endif 1312 1315 return 0; 1313 1316 } 1314 1317 -
Utilities/cmlibuv/src/unix/fs.c
old new 59 59 # include <sys/sendfile.h> 60 60 #endif 61 61 62 #if defined(__APPLE__)63 # include <sys/sysctl.h>62 #if ( defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 ) 63 # include <copyfile.h> 64 64 #elif defined(__linux__) && !defined(FICLONE) 65 65 # include <sys/ioctl.h> 66 66 # define FICLONE _IOW(0x94, 9, int) … … 743 743 744 744 return -1; 745 745 } 746 #elif defined(__APPLE__) 746 #elif defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 || \ 747 747 defined(__DragonFly__) || \ 748 748 defined(__FreeBSD__) || \ 749 749 defined(__FreeBSD_kernel__) … … 1055 1055 dst->st_blksize = src->st_blksize; 1056 1056 dst->st_blocks = src->st_blocks; 1057 1057 1058 #if defined(__APPLE__)1058 #if ( defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050) 1059 1059 dst->st_atim.tv_sec = src->st_atimespec.tv_sec; 1060 1060 dst->st_atim.tv_nsec = src->st_atimespec.tv_nsec; 1061 1061 dst->st_mtim.tv_sec = src->st_mtimespec.tv_sec;