mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
avoid_loop Patch by Gerardo Malazdrewicz <gerardo@malazdrewicz.com.ar>
This commit is contained in:
@@ -642,7 +642,7 @@ int clock_gettime(clockid_t clk_id, struct timespec *tp) {
|
||||
/* Check whether we've got a pointer to the real clock_gettime() function yet */
|
||||
SINGLE_IF(has_real_clock_gettime==0)
|
||||
real_clock_gettime = NULL;
|
||||
real_clock_gettime = dlsym(RTLD_NEXT, "clock_gettime");
|
||||
real_clock_gettime = dlsym(RTLD_NEXT, "__clock_gettime");
|
||||
|
||||
/* check whether dlsym() worked */
|
||||
if (dlerror() == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user