diff options
Diffstat (limited to 'gl/sys_stat.in.h')
| -rw-r--r-- | gl/sys_stat.in.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/gl/sys_stat.in.h b/gl/sys_stat.in.h index babe3dba..714c3cb1 100644 --- a/gl/sys_stat.in.h +++ b/gl/sys_stat.in.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Provide a more complete sys/stat.h header file. | 1 | /* Provide a more complete sys/stat.h header file. |
| 2 | Copyright (C) 2005-2021 Free Software Foundation, Inc. | 2 | Copyright (C) 2005-2022 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -391,7 +391,33 @@ struct stat | |||
| 391 | #endif | 391 | #endif |
| 392 | 392 | ||
| 393 | 393 | ||
| 394 | #if @GNULIB_MDA_CHMOD@ | 394 | #if @GNULIB_CHMOD@ |
| 395 | # if @REPLACE_CHMOD@ | ||
| 396 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 397 | # undef chmod | ||
| 398 | # define chmod rpl_chmod | ||
| 399 | # endif | ||
| 400 | _GL_FUNCDECL_RPL (chmod, int, (const char *filename, mode_t mode) | ||
| 401 | _GL_ARG_NONNULL ((1))); | ||
| 402 | _GL_CXXALIAS_RPL (chmod, int, (const char *filename, mode_t mode)); | ||
| 403 | # elif defined _WIN32 && !defined __CYGWIN__ | ||
| 404 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 405 | # undef chmod | ||
| 406 | # define chmod _chmod | ||
| 407 | # endif | ||
| 408 | /* Need to cast, because in mingw the last argument is 'int mode'. */ | ||
| 409 | _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); | ||
| 410 | # else | ||
| 411 | _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); | ||
| 412 | # endif | ||
| 413 | _GL_CXXALIASWARN (chmod); | ||
| 414 | #elif defined GNULIB_POSIXCHECK | ||
| 415 | # undef chmod | ||
| 416 | # if HAVE_RAW_DECL_CHMOD | ||
| 417 | _GL_WARN_ON_USE (chmod, "chmod has portability problems - " | ||
| 418 | "use gnulib module chmod for portability"); | ||
| 419 | # endif | ||
| 420 | #elif @GNULIB_MDA_CHMOD@ | ||
| 395 | /* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not | 421 | /* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not |
| 396 | required. In C++ with GNULIB_NAMESPACE, avoid differences between | 422 | required. In C++ with GNULIB_NAMESPACE, avoid differences between |
| 397 | platforms by defining GNULIB_NAMESPACE::chmod always. */ | 423 | platforms by defining GNULIB_NAMESPACE::chmod always. */ |
