diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /lib/sys_stat.in.h | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lib/sys_stat.in.h')
| -rw-r--r-- | lib/sys_stat.in.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 89e167f6d1c..3e0e4b27b7e 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -391,6 +391,12 @@ struct stat | |||
| 391 | #endif | 391 | #endif |
| 392 | 392 | ||
| 393 | 393 | ||
| 394 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 395 | # undef chmod | ||
| 396 | # define chmod _chmod | ||
| 397 | #endif | ||
| 398 | |||
| 399 | |||
| 394 | #if @GNULIB_FCHMODAT@ | 400 | #if @GNULIB_FCHMODAT@ |
| 395 | # if @REPLACE_FCHMODAT@ | 401 | # if @REPLACE_FCHMODAT@ |
| 396 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 402 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| @@ -432,7 +438,9 @@ _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); | |||
| 432 | # else | 438 | # else |
| 433 | _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); | 439 | _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); |
| 434 | # endif | 440 | # endif |
| 441 | # if __GLIBC__ >= 2 | ||
| 435 | _GL_CXXALIASWARN (fstat); | 442 | _GL_CXXALIASWARN (fstat); |
| 443 | # endif | ||
| 436 | #elif @GNULIB_OVERRIDES_STRUCT_STAT@ | 444 | #elif @GNULIB_OVERRIDES_STRUCT_STAT@ |
| 437 | # undef fstat | 445 | # undef fstat |
| 438 | # define fstat fstat_used_without_requesting_gnulib_module_fstat | 446 | # define fstat fstat_used_without_requesting_gnulib_module_fstat |
| @@ -800,6 +808,12 @@ _GL_WARN_ON_USE (stat, "stat is unportable - " | |||
| 800 | #endif | 808 | #endif |
| 801 | 809 | ||
| 802 | 810 | ||
| 811 | #if defined _WIN32 && !defined __CYGWIN__ | ||
| 812 | # undef umask | ||
| 813 | # define umask _umask | ||
| 814 | #endif | ||
| 815 | |||
| 816 | |||
| 803 | #if @GNULIB_UTIMENSAT@ | 817 | #if @GNULIB_UTIMENSAT@ |
| 804 | /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat | 818 | /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat |
| 805 | implementation relies on futimesat, which on Solaris 10 makes an invocation | 819 | implementation relies on futimesat, which on Solaris 10 makes an invocation |