diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2020-02-11 13:16:14 -0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-04-02 09:21:06 -0700 |
commit | 0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132 (patch) | |
tree | 84c04949834c1b2985b16d39f1642083ebb90fb7 /sysdeps/unix/sysv/linux/alpha/osf_getitimer.c | |
parent | 600f00b747ff42eb0aa778536d3ef602e8bcd550 (diff) | |
download | glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.tar glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.tar.gz glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.tar.bz2 glibc-0bcd0c5100f5268b04b7b4dbbea63eb2c50e9132.zip |
sysv/alpha: Use generic __timeval32 and helpers
Now there is a generic __timeval32 and helpers we can use them for Alpha
instead of the Alpha specific ones.
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/osf_getitimer.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/osf_getitimer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/osf_getitimer.c b/sysdeps/unix/sysv/linux/alpha/osf_getitimer.c index 204d4ba796..4d25060e96 100644 --- a/sysdeps/unix/sysv/linux/alpha/osf_getitimer.c +++ b/sysdeps/unix/sysv/linux/alpha/osf_getitimer.c @@ -20,12 +20,13 @@ #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1) +#include <time.h> #include <sys/time.h> -#include <alpha-tv32-compat.h> +#include <tv32-compat.h> int attribute_compat_text_section -__getitimer_tv32 (int which, struct itimerval32 *curr_value) +__getitimer_tv32 (int which, struct __itimerval32 *curr_value) { struct itimerval curr_value_64; if (__getitimer (which, &curr_value_64) == -1) @@ -33,9 +34,9 @@ __getitimer_tv32 (int which, struct itimerval32 *curr_value) /* Write all fields of 'curr_value' regardless of overflow. */ curr_value->it_interval - = alpha_valid_timeval_to_timeval32 (curr_value_64.it_interval); + = valid_timeval_to_timeval32 (curr_value_64.it_interval); curr_value->it_value - = alpha_valid_timeval_to_timeval32 (curr_value_64.it_value); + = valid_timeval_to_timeval32 (curr_value_64.it_value); return 0; } |