From: Lukasz Majewski Date: Tue, 23 Mar 2021 10:37:01 +0000 (+0100) Subject: fix: Always export ntp_gettimex function X-Git-Tag: glibc-2.34~800 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3989bcb5e3437746f7ec37fc9517308e5e091ded;p=glibc.git fix: Always export ntp_gettimex function After this patch applied the ntp_gettimex function is always declared in the sys/timex.h header. Currently it is not when __REDIRECT_NTH is defined (i.e. in ARM 32 bit port). --- diff --git a/sysdeps/unix/sysv/linux/sys/timex.h b/sysdeps/unix/sysv/linux/sys/timex.h index 37931ff496..eb8d15a806 100644 --- a/sysdeps/unix/sysv/linux/sys/timex.h +++ b/sysdeps/unix/sysv/linux/sys/timex.h @@ -56,12 +56,12 @@ __BEGIN_DECLS extern int __adjtimex (struct timex *__ntx) __THROW; extern int adjtimex (struct timex *__ntx) __THROW; +extern int ntp_gettimex (struct ntptimeval *__ntv) __THROW; #ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (ntp_gettime, (struct ntptimeval *__ntv), ntp_gettimex); #else -extern int ntp_gettimex (struct ntptimeval *__ntv) __THROW; # define ntp_gettime ntp_gettimex #endif extern int ntp_adjtime (struct timex *__tntx) __THROW;