diff options
Diffstat (limited to 'lib/sys_stat.in.h')
| -rw-r--r-- | lib/sys_stat.in.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 61317602344..7593fee54a8 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h | |||
| @@ -25,6 +25,13 @@ | |||
| 25 | #endif | 25 | #endif |
| 26 | @PRAGMA_COLUMNS@ | 26 | @PRAGMA_COLUMNS@ |
| 27 | 27 | ||
| 28 | /* This file uses #include_next of a system file that defines time_t. | ||
| 29 | For the 'year2038' module to work right, <config.h> needs to have been | ||
| 30 | included before. */ | ||
| 31 | #if !_GL_CONFIG_H_INCLUDED | ||
| 32 | #error "Please include config.h first." | ||
| 33 | #endif | ||
| 34 | |||
| 28 | #if defined __need_system_sys_stat_h | 35 | #if defined __need_system_sys_stat_h |
| 29 | /* Special invocation convention. */ | 36 | /* Special invocation convention. */ |
| 30 | 37 | ||
| @@ -48,6 +55,11 @@ | |||
| 48 | #ifndef _@GUARD_PREFIX@_SYS_STAT_H | 55 | #ifndef _@GUARD_PREFIX@_SYS_STAT_H |
| 49 | #define _@GUARD_PREFIX@_SYS_STAT_H | 56 | #define _@GUARD_PREFIX@_SYS_STAT_H |
| 50 | 57 | ||
| 58 | /* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */ | ||
| 59 | #if !_GL_CONFIG_H_INCLUDED | ||
| 60 | #error "Please include config.h first." | ||
| 61 | #endif | ||
| 62 | |||
| 51 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ | 63 | /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ |
| 52 | 64 | ||
| 53 | /* The definition of _GL_ARG_NONNULL is copied here. */ | 65 | /* The definition of _GL_ARG_NONNULL is copied here. */ |
| @@ -549,7 +561,7 @@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); | |||
| 549 | # endif | 561 | # endif |
| 550 | _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); | 562 | _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); |
| 551 | # endif | 563 | # endif |
| 552 | # if @HAVE_FUTIMENS@ | 564 | # if __GLIBC__ >= 2 && @HAVE_FUTIMENS@ |
| 553 | _GL_CXXALIASWARN (futimens); | 565 | _GL_CXXALIASWARN (futimens); |
| 554 | # endif | 566 | # endif |
| 555 | #elif defined GNULIB_POSIXCHECK | 567 | #elif defined GNULIB_POSIXCHECK |
| @@ -716,7 +728,9 @@ _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) | |||
| 716 | # endif | 728 | # endif |
| 717 | _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); | 729 | _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); |
| 718 | # endif | 730 | # endif |
| 731 | # if __GLIBC__ >= 2 | ||
| 719 | _GL_CXXALIASWARN (mkfifoat); | 732 | _GL_CXXALIASWARN (mkfifoat); |
| 733 | # endif | ||
| 720 | #elif defined GNULIB_POSIXCHECK | 734 | #elif defined GNULIB_POSIXCHECK |
| 721 | # undef mkfifoat | 735 | # undef mkfifoat |
| 722 | # if HAVE_RAW_DECL_MKFIFOAT | 736 | # if HAVE_RAW_DECL_MKFIFOAT |
| @@ -773,7 +787,9 @@ _GL_FUNCDECL_SYS (mknodat, int, | |||
| 773 | _GL_CXXALIAS_SYS (mknodat, int, | 787 | _GL_CXXALIAS_SYS (mknodat, int, |
| 774 | (int fd, char const *file, mode_t mode, dev_t dev)); | 788 | (int fd, char const *file, mode_t mode, dev_t dev)); |
| 775 | # endif | 789 | # endif |
| 790 | # if __GLIBC__ >= 2 | ||
| 776 | _GL_CXXALIASWARN (mknodat); | 791 | _GL_CXXALIASWARN (mknodat); |
| 792 | # endif | ||
| 777 | #elif defined GNULIB_POSIXCHECK | 793 | #elif defined GNULIB_POSIXCHECK |
| 778 | # undef mknodat | 794 | # undef mknodat |
| 779 | # if HAVE_RAW_DECL_MKNODAT | 795 | # if HAVE_RAW_DECL_MKNODAT |
| @@ -937,7 +953,7 @@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, | |||
| 937 | _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, | 953 | _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, |
| 938 | struct timespec const times[2], int flag)); | 954 | struct timespec const times[2], int flag)); |
| 939 | # endif | 955 | # endif |
| 940 | # if @HAVE_UTIMENSAT@ | 956 | # if __GLIBC__ >= 2 && @HAVE_UTIMENSAT@ |
| 941 | _GL_CXXALIASWARN (utimensat); | 957 | _GL_CXXALIASWARN (utimensat); |
| 942 | # endif | 958 | # endif |
| 943 | #elif defined GNULIB_POSIXCHECK | 959 | #elif defined GNULIB_POSIXCHECK |