From e9fd4687b0a56683eb8dd67e7b1ec8cb5ba978fc Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 2 Dec 2018 02:49:53 +0100 Subject: [PATCH] task: fix includes for tsc --- common/include/villas/task.h | 6 ++++-- common/lib/task.c | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/include/villas/task.h b/common/include/villas/task.h index 54956d836..fe44eca4d 100644 --- a/common/include/villas/task.h +++ b/common/include/villas/task.h @@ -26,8 +26,6 @@ #include #include -#include - #include #ifdef __cplusplus @@ -49,6 +47,10 @@ extern "C" { #error "Platform not supported" #endif +#if PERIODIC_TASK_IMPL == RDTSC + #include +#endif + struct task { int clock; /**< CLOCK_{MONOTONIC,REALTIME} */ diff --git a/common/lib/task.c b/common/lib/task.c index d1900c6b3..c8e2ccbe3 100644 --- a/common/lib/task.c +++ b/common/lib/task.c @@ -30,8 +30,6 @@ #if PERIODIC_TASK_IMPL == TIMERFD #include -#elif PERIODIC_TASK_IMPL == RDTSC - #include #endif int task_init(struct task *t, double rate, int clock)