public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] fix: Always export ntp_gettimex function
@ 2021-03-23 10:58 Lukasz Majewski
  2021-03-23 11:12 ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Lukasz Majewski @ 2021-03-23 10:58 UTC (permalink / raw)
  To: Joseph Myers, Adhemerval Zanella
  Cc: Paul Eggert, Arnd Bergmann, GNU C Library, Florian Weimer,
	Carlos O'Donell, Lukasz Majewski

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(-)

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;
-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-23 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 10:58 [PATCH] fix: Always export ntp_gettimex function Lukasz Majewski
2021-03-23 11:12 ` Andreas Schwab
2021-03-23 11:24   ` Lukasz Majewski
2021-03-23 13:22     ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).