diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 11:02:54 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 11:02:54 +0200 |
commit | 6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954 (patch) | |
tree | 40d94e759e984c2957ae28b28eb4db2e2b8494aa /nptl/pthread_condattr_setclock.c | |
parent | 2a775a9ea574957248e333595a35a75e43c946dc (diff) | |
download | glibc-6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954.tar.gz glibc-6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954.tar.xz glibc-6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954.zip |
nptl: Move pthread_condattr_setclock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_condattr_setclock.c')
-rw-r--r-- | nptl/pthread_condattr_setclock.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_setclock.c b/nptl/pthread_condattr_setclock.c index 9bb3dd3739..536ab6564e 100644 --- a/nptl/pthread_condattr_setclock.c +++ b/nptl/pthread_condattr_setclock.c @@ -25,7 +25,7 @@ int -pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id) +__pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id) { /* Only a few clocks are allowed. */ if (clock_id != CLOCK_MONOTONIC && clock_id != CLOCK_REALTIME) @@ -43,3 +43,10 @@ pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id) return 0; } +versioned_symbol (libc, __pthread_condattr_setclock, + pthread_condattr_setclock, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34) +compat_symbol (libpthread, __pthread_condattr_setclock, + pthread_condattr_setclock, GLIBC_2_3_3); +#endif |