diff options
author | Lukasz Majewski <lukma@denx.de> | 2019-10-02 10:19:55 +0200 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2019-10-02 18:05:20 +0200 |
commit | 4973abcba9453d54e8996a55c56ec004b669aa65 (patch) | |
tree | 30b8e898c64fdbced6b3f2a27f8b1a0fb5bbe7bb /include | |
parent | 7b8481b330720d28c019a2e5994492a1923d5daa (diff) | |
download | glibc-4973abcba9453d54e8996a55c56ec004b669aa65.tar.gz glibc-4973abcba9453d54e8996a55c56ec004b669aa65.tar.xz glibc-4973abcba9453d54e8996a55c56ec004b669aa65.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 9878c2b2ca..f6dc731ac6 100644 --- a/include/time.h +++ b/include/time.h @@ -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> |