about summary refs log tree commit diff
path: root/time/gettimeofday.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-02-13 08:27:27 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-02-13 08:27:27 -0300
commitd3436a7f3240b8a657d35e417515d4e18fc9e396 (patch)
treef2c1837b879d4ce4a67627551e1c6bfad669f527 /time/gettimeofday.c
parentfd3540deff239355a01314947b9313042654c1e7 (diff)
downloadglibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.tar.gz
glibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.tar.xz
glibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.zip
alpha: Fix static gettimeofday symbol
By undef strong_alias on alpha implementation, the
default_symbol_version macro becomes an empty macro on static build.
It fixes the issue introduced at c953219420.

Checked on alpha-linux-gnu with a 'make check run-built-tests=no'.
Diffstat (limited to 'time/gettimeofday.c')
-rw-r--r--time/gettimeofday.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time/gettimeofday.c b/time/gettimeofday.c
index 07c6e10d12..e4671edd13 100644
--- a/time/gettimeofday.c
+++ b/time/gettimeofday.c
@@ -35,6 +35,8 @@ ___gettimeofday (struct timeval *restrict tv, void *restrict tz)
   TIMESPEC_TO_TIMEVAL (tv, &ts);
   return 0;
 }
-
+/* Define to override default symbol version.  */
+#ifndef SET_VERSION
 strong_alias (___gettimeofday, __gettimeofday)
 weak_alias (___gettimeofday, gettimeofday)
+#endif