diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-05 09:43:13 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-05 09:44:06 -0700 |
commit | f6070476687af9ca1b5837f8a45047acdd419b08 (patch) | |
tree | 8ca2fe8908d91d221a9ff38c52fe065aeb0069ac /benchtests/bench-timing.h | |
parent | 9b7424215b10ae01d680ef91e10fc10f51227177 (diff) | |
download | glibc-f6070476687af9ca1b5837f8a45047acdd419b08.tar.gz glibc-f6070476687af9ca1b5837f8a45047acdd419b08.tar.xz glibc-f6070476687af9ca1b5837f8a45047acdd419b08.zip |
Update HP_TIMING_NOW for _ISOMAC in sysdeps/generic/hp-timing.h
commit e9698175b0b60407db1e89bcf29437ab224bca0b Author: Lukasz Majewski <lukma@denx.de> Date: Mon Mar 16 08:31:41 2020 +0100 y2038: Replace __clock_gettime with __clock_gettime64 breaks benchtests with sysdeps/generic/hp-timing.h: In file included from ./bench-timing.h:23, from ./bench-skeleton.c:25, from /export/build/gnu/tools-build/glibc-gitlab/build-x86_64-linux/benchtests/bench-rint.c:45: ./bench-skeleton.c: In function ‘main’: ../sysdeps/generic/hp-timing.h:37:23: error: storage size of ‘tv’ isn’t known 37 | struct __timespec64 tv; \ | ^~ Define HP_TIMING_NOW with clock_gettime in sysdeps/generic/hp-timing.h if _ISOMAC is defined. Don't define __clock_gettime in bench-timing.h since it is no longer needed. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'benchtests/bench-timing.h')
-rw-r--r-- | benchtests/bench-timing.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h index a0d6f82465..d0176fb76e 100644 --- a/benchtests/bench-timing.h +++ b/benchtests/bench-timing.h @@ -18,7 +18,6 @@ #undef attribute_hidden #define attribute_hidden -#define __clock_gettime __clock_gettime64 #include <hp-timing.h> #include <stdint.h> |