diff mbox series

fix: Always export ntp_gettimex function

Message ID 20210323105830.12017-1-lukma@denx.de
State Committed
Commit 3989bcb5e3437746f7ec37fc9517308e5e091ded
Headers show
Series fix: Always export ntp_gettimex function | expand

Commit Message

Lukasz Majewski March 23, 2021, 10:58 a.m. UTC
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

Andreas Schwab March 23, 2021, 11:12 a.m. UTC | #1
On Mär 23 2021, Lukasz Majewski wrote:

> After this patch applied the ntp_gettimex function is always exported

s/exported/declared/

Andreas.
Lukasz Majewski March 23, 2021, 11:24 a.m. UTC | #2
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
Adhemerval Zanella March 23, 2021, 1:22 p.m. UTC | #3
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.
diff mbox series

Patch

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;