Commit f4228b93 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

task: fix includes for tsc

parent 4e9e0302
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <villas/tsc.h>
#include <time.h> #include <time.h>
#ifdef __cplusplus #ifdef __cplusplus
...@@ -49,6 +47,10 @@ extern "C" { ...@@ -49,6 +47,10 @@ extern "C" {
#error "Platform not supported" #error "Platform not supported"
#endif #endif
#if PERIODIC_TASK_IMPL == RDTSC
#include <villas/tsc.h>
#endif
struct task { struct task {
int clock; /**< CLOCK_{MONOTONIC,REALTIME} */ int clock; /**< CLOCK_{MONOTONIC,REALTIME} */
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#if PERIODIC_TASK_IMPL == TIMERFD #if PERIODIC_TASK_IMPL == TIMERFD
#include <sys/timerfd.h> #include <sys/timerfd.h>
#elif PERIODIC_TASK_IMPL == RDTSC
#include <villas/tsc.h>
#endif #endif
int task_init(struct task *t, double rate, int clock) int task_init(struct task *t, double rate, int clock)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment