Fix handling of __vdso_clock_gettime
[platform/upstream/glibc.git] / sysdeps / unix / sysv / linux / x86_64 / clock_gettime.c
1 #include "bits/libc-vdso.h"
2
3 #ifdef SHARED
4 # define SYSCALL_GETTIME(id, tp) \
5   ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
6   PTR_DEMANGLE (f);                                                       \
7   f (id, tp); })
8 # define INTERNAL_GETTIME(id, tp) \
9   ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
10   PTR_DEMANGLE (f);                                                       \
11   f (id, tp); })
12 #endif
13
14 #include "../clock_gettime.c"