]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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)
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

index 4d81d560d790ab1c2b0d7e758686face19ddc8b9..db769e364299667d1c86d97fee8524ebea726974 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 9878c2b2cac23931a6b3800a58e2f06ec0ac8316..f6dc731ac6dabb28a1c4afa94e76b9f98ef22b25 100644 (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>