]> sourceware.org Git - glibc.git/commitdiff
Make <sys/timex.h> compatible with C++
authorAndreas Schwab <schwab@redhat.com>
Fri, 21 May 2010 18:45:17 +0000 (11:45 -0700)
committerUlrich Drepper <drepper@redhat.com>
Fri, 21 May 2010 18:45:17 +0000 (11:45 -0700)
ChangeLog
sysdeps/unix/sysv/linux/sys/timex.h

index e7215fd1a9573646c414b054ec927628938023e0..521e6ae30176a486c18307da57880a21d1c9dd06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-20  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
+
 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
 
        POWER7 optimizations.
index e10311f70f6a73b602bd0a43d377f975e3b31105..13b94d6f4fb10a6ad2e60e4631d3436f9a3813f5 100644 (file)
@@ -140,9 +140,9 @@ __BEGIN_DECLS
 extern int __adjtimex (struct timex *__ntx) __THROW;
 extern int adjtimex (struct timex *__ntx) __THROW;
 
-#if defined __GNUC__ && __GNUC__ >= 2
-extern int ntp_gettime (struct ntptimeval *__ntv)
-     __asm__ ("ntp_gettimex") __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
This page took 0.048866 seconds and 5 git commands to generate.