summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-03 17:59:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-03 18:00:10 +0200
commit639ea07d775056f1bcbc5a8df1a9d7a68eab4d33 (patch)
treed8fa71bec3bac34348fb906f031a305e83dd83f1
parented0aec25c50b53e63070c2a4a25480724bdf343a (diff)
downloadfastd-639ea07d775056f1bcbc5a8df1a9d7a68eab4d33.tar
fastd-639ea07d775056f1bcbc5a8df1a9d7a68eab4d33.zip
Fix clock_gettime() on MacOS X
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index d5d60fc..c73a340 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -116,7 +116,7 @@ static inline char *get_current_dir_name(void) {
#define CLOCK_MONOTONIC 0
#define clockid_t int
-static inline int clock_gettime(clockid_t clk_id __attribute__((unused)), fastd_timeout_t *tp) {
+static inline int clock_gettime(clockid_t clk_id __attribute__((unused)), struct timespec *tp) {
static mach_timebase_info_data_t timebase_info = {};
if (!timebase_info.denom)