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>
This commit is contained in:
Lukasz Majewski 2019-10-02 10:19:55 +02:00
parent 7b8481b330
commit 4973abcba9
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,6 @@
2019-10-02 Łukasz Majewski <lukma@denx.de>
* include/time.h: Add #include <bits/types/struct_timeval.h>
2019-10-02 Arjun Shankar <arjun@redhat.com>
debugglibc.sh: Implement program arguments

View file

@ -2,6 +2,7 @@
#include <time/time.h>
#ifndef _ISOMAC
# include <bits/types/struct_timeval.h>
# include <bits/types/locale_t.h>
# include <stdbool.h>
# include <time/mktime-internal.h>