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)