summary refs log tree commit diff
path: root/sysdeps/posix/clock_getres.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-06-11 11:11:11 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-06-11 11:11:11 +0530
commit89fb6835583088059b8d8987c86caac33e37e5ea (patch)
treeffd867e682b478adbfe07fe0410c33c14b6e4002 /sysdeps/posix/clock_getres.c
parentb8c61b4b1d6afb69190169764c1b141f4659e48b (diff)
downloadglibc-89fb6835583088059b8d8987c86caac33e37e5ea.tar.gz
glibc-89fb6835583088059b8d8987c86caac33e37e5ea.tar.xz
glibc-89fb6835583088059b8d8987c86caac33e37e5ea.zip
Fix symbol definitions for __clock_* functions
__clock_gettime and other __clock_* functions could result in an extra
PLT reference within libc.so if it actually gets used.  None of the
code currently uses them, which is why this probably went unnoticed.
Diffstat (limited to 'sysdeps/posix/clock_getres.c')
-rw-r--r--sysdeps/posix/clock_getres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/clock_getres.c b/sysdeps/posix/clock_getres.c
index 7581f32806..5d898e4d04 100644
--- a/sysdeps/posix/clock_getres.c
+++ b/sysdeps/posix/clock_getres.c
@@ -76,7 +76,7 @@ realtime_getres (struct timespec *res)
 
 /* Get resolution of clock.  */
 int
-clock_getres (clockid_t clock_id, struct timespec *res)
+__clock_getres (clockid_t clock_id, struct timespec *res)
 {
   int retval = -1;
 
@@ -115,4 +115,4 @@ clock_getres (clockid_t clock_id, struct timespec *res)
 
   return retval;
 }
-strong_alias (clock_getres, __clock_getres)
+weak_alias (__clock_getres, clock_getres)