Browse Source

Provide __adjtimex() alias, like glibc.

Althought recent versions of sofware don't require it, old ntpd
wants - see http://bugs.ntp.org/show_bug.cgi?id=769

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Leonid Lisovskiy 8 years ago
parent
commit
fb6a51ed43
2 changed files with 1 additions and 2 deletions
  1. 0 2
      include/sys/timex.h
  2. 1 0
      libc/sysdeps/linux/common/adjtimex.c

+ 0 - 2
include/sys/timex.h

@@ -120,9 +120,7 @@ struct timex
 
 __BEGIN_DECLS
 
-#if 0
 extern int __adjtimex (struct timex *__ntx) __THROW;
-#endif
 extern int adjtimex (struct timex *__ntx) __THROW;
 libc_hidden_proto(adjtimex)
 

+ 1 - 0
libc/sysdeps/linux/common/adjtimex.c

@@ -13,6 +13,7 @@
 
 _syscall1(int, adjtimex, struct timex *, buf)
 libc_hidden_def(adjtimex)
+weak_alias(adjtimex,__adjtimex)
 #if defined __UCLIBC_NTP_LEGACY__
 strong_alias(adjtimex,ntp_adjtime)
 #endif