diff options
author | Karel Zak | 2015-03-06 13:17:20 +0100 |
---|---|---|
committer | Karel Zak | 2015-03-06 13:17:20 +0100 |
commit | 26e8964b9db51e27cc6eaf5510ebc8eac8443f33 (patch) | |
tree | 1adb27c7542eca3eadea4e3457f7bbab24f1b39f /include/monotonic.h | |
parent | Merge branch 'logger-man-syslog-routine' of https://github.com/rgerhards/util... (diff) | |
download | kernel-qcow2-util-linux-26e8964b9db51e27cc6eaf5510ebc8eac8443f33.tar.gz kernel-qcow2-util-linux-26e8964b9db51e27cc6eaf5510ebc8eac8443f33.tar.xz kernel-qcow2-util-linux-26e8964b9db51e27cc6eaf5510ebc8eac8443f33.zip |
lib/timer: use separate file for timers
It seems that static builds require -lpthread for timer_* functions.
It's better to keep it out of our libs (e.g. libmount) to avoid
unnecessary dependence.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/monotonic.h')
-rw-r--r-- | include/monotonic.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/monotonic.h b/include/monotonic.h index bbebfe0b9..a499fa34a 100644 --- a/include/monotonic.h +++ b/include/monotonic.h @@ -1,18 +1,10 @@ -#ifndef UTIL_LINUX_BOOTTIME_H -#define UTIL_LINUX_BOOTTIME_H +#ifndef UTIL_LINUX_MONOTONIC_H +#define UTIL_LINUX_MONOTONIC_H -/* - * Uses clock_gettime() that requires $CLOCKGETTIME_LIBS - */ -#include <signal.h> #include <sys/time.h> extern int get_boot_time(struct timeval *boot_time); extern int gettime_monotonic(struct timeval *tv); -extern int setup_timer(timer_t * t_id, struct itimerval *timeout, - void (*timeout_handler)(int, siginfo_t *, void *)); -extern void cancel_timer(timer_t * t_id); - -#endif /* UTIL_LINUX_BOOTTIME_H */ +#endif /* UTIL_LINUX_MONOTONIC_H */ |