]> git.ipfire.org Git - thirdparty/glibc.git/commit
Y2038: Include proper header to provide support for struct timeval on HURD
authorLukasz Majewski <lukma@denx.de>
Wed, 2 Oct 2019 08:19:55 +0000 (10:19 +0200)
committerLukasz Majewski <lukma@denx.de>
Wed, 2 Oct 2019 16:05:20 +0000 (18:05 +0200)
commit4973abcba9453d54e8996a55c56ec004b669aa65
tree30b8e898c64fdbced6b3f2a27f8b1a0fb5bbe7bb
parent7b8481b330720d28c019a2e5994492a1923d5daa
Y2038: Include proper header to provide support for struct timeval on HURD

The HURD requires explicit inclusion of <bits/types/struct_timeval.h> to use
struct timeval in ./include/time.h.
For this particular glibc port, the proper header hasn't been included before
inclusion of time.h.

Tested with build-many-glibcs.py with i686-gnu and x86_64-linux-gnu:

build-many-glibcs.py /home/lukma/work/glibc/glibc-many-build --keep all compilers i686-gnu
build-many-glibcs.py /home/lukma/work/glibc/glibc-many-build --keep all glibcs i686-gnu

Also run of xcheck on x86_64:
./src/configure --prefix=/usr
make PARALLELMFLAGS="-j12" && make xcheck PARALLELMFLAGS="-j12"

* include/time.h: Add #include <bits/types/struct_timeval.h>
ChangeLog
include/time.h