fix: Always export ntp_gettimex function
Commit Message
After this patch applied the ntp_gettimex function is always exported
in the sys/timex.h header. Currently it is not when __REDIRECT_NTH is
defined (i.e. in ARM 32 bit port).
---
sysdeps/unix/sysv/linux/sys/timex.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mär 23 2021, Lukasz Majewski wrote:
> After this patch applied the ntp_gettimex function is always exported
s/exported/declared/
Andreas.
Hi Andreas,
> On Mär 23 2021, Lukasz Majewski wrote:
>
> > After this patch applied the ntp_gettimex function is always
> > exported
>
> s/exported/declared/
Corrected, thanks.
>
> Andreas.
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
On 23/03/2021 08:24, Lukasz Majewski wrote:
> Hi Andreas,
>
>> On Mär 23 2021, Lukasz Majewski wrote:
>>
>>> After this patch applied the ntp_gettimex function is always
>>> exported
>>
>> s/exported/declared/
>
> Corrected, thanks.
>
>>
>> Andreas.
>>
>
>
> Best regards,
>
> Lukasz Majewski
>
LGTM with Andreas remark fixed.
@@ -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;