about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2021-03-23 11:37:01 +0100
committerLukasz Majewski <lukma@denx.de>2021-03-23 12:23:03 +0100
commit3989bcb5e3437746f7ec37fc9517308e5e091ded (patch)
treed8a9033435cfd344682b0329ab141bab3f63bf49
parent3e2f285c5f12045e425060b6cbdf7a7cab540594 (diff)
downloadglibc-3989bcb5e3437746f7ec37fc9517308e5e091ded.tar.gz
glibc-3989bcb5e3437746f7ec37fc9517308e5e091ded.tar.xz
glibc-3989bcb5e3437746f7ec37fc9517308e5e091ded.zip
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).
-rw-r--r--sysdeps/unix/sysv/linux/sys/timex.h2
1 files changed, 1 insertions, 1 deletions
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;