]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
authorRichard Henderson <rth@redhat.com>
Fri, 15 Oct 2004 07:06:56 +0000 (07:06 +0000)
committerRichard Henderson <rth@redhat.com>
Fri, 15 Oct 2004 07:06:56 +0000 (07:06 +0000)
        style definition.
        * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
        __ASSUME_TIMEVAL64, define __adjtime directly rather than
        via strong_alias.

sysdeps/unix/sysv/linux/alpha/adjtime.c

index f8b272e9ce0417f8ef14f999a9f8d460f7363f04..e206cb4727e318f906be7d60bb26ae577ce2dd52 100644 (file)
@@ -87,14 +87,15 @@ compat_symbol (libc, __adjtime_tv32, adjtime, GLIBC_2_0);
 #define TIMEVAL                timeval
 #undef TIMEX
 #define TIMEX          timex
-#undef ADJTIME
-#define ADJTIME                __adjtime_tv64
 #undef ADJTIMEX
 #define ADJTIMEX(x)    INLINE_SYSCALL (adjtimex, 1, x)
+
 #undef LINKAGE
+#undef ADJTIME
+#if !defined __ASSUME_TIMEVAL64
 #define LINKAGE                static
-
-LINKAGE int ADJTIME (const struct TIMEVAL *itv, struct TIMEVAL *otv);
+#define ADJTIME                __adjtime_tv64
+#endif
 
 #include <sysdeps/unix/sysv/linux/adjtime.c>
 #include <stdbool.h>
@@ -135,8 +136,6 @@ __adjtime (itv, otv)
 
   return ret;
 }
-#else
-strong_alias (__adjtime_tv64, __adjtime);
 #endif
 
 versioned_symbol (libc, __adjtime, adjtime, GLIBC_2_1);