diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-05-02 23:20:33 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-05-02 23:20:33 +0000 |
commit | 35281b18b8f9907213410ebbebc23c71b2ec357a (patch) | |
tree | be052d046d2a9270d55730bb3dc54b793f14ed82 /sysdeps/alpha | |
parent | 230528c467ee5ae7b55d41530bbb10fd94da948f (diff) | |
download | glibc-35281b18b8f9907213410ebbebc23c71b2ec357a.tar.gz glibc-35281b18b8f9907213410ebbebc23c71b2ec357a.tar.xz glibc-35281b18b8f9907213410ebbebc23c71b2ec357a.zip |
Fix fcntl.h timespec namespace (bug 20023).
fcntl.h defines struct timespec if __USE_XOPEN || __USE_XOPEN2K8. But (a) the subsequent bits/stat.h include only needs it if __USE_XOPEN2K8 and (b) older standards did not allow struct timespec here. (It's allowed for newer standards by virtue of the permission to include symbols from sys/stat.h. But sys/stat.h is only required to provide struct timespec from the 2008 edition of POSIX onwards, and permitted by the 2004 TC to the 2001 edition in anticipation of the addition of nanosecond timestamp support to struct stat in the 2008 edition.) This patch limits the timespec definition to the __USE_XOPEN2K8 case, that being the only case where it is actually needed for the <bits/stat.h> include. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). [BZ #20023] * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include <time.h>. * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove variable. (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
Diffstat (limited to 'sysdeps/alpha')
0 files changed, 0 insertions, 0 deletions