mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
task: fix includes for tsc
This commit is contained in:
parent
cb157965c2
commit
ba6815af1b
2 changed files with 4 additions and 4 deletions
|
@ -26,8 +26,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <villas/tsc.h>
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -49,6 +47,10 @@ extern "C" {
|
|||
#error "Platform not supported"
|
||||
#endif
|
||||
|
||||
#if PERIODIC_TASK_IMPL == RDTSC
|
||||
#include <villas/tsc.h>
|
||||
#endif
|
||||
|
||||
struct task {
|
||||
int clock; /**< CLOCK_{MONOTONIC,REALTIME} */
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
#if PERIODIC_TASK_IMPL == TIMERFD
|
||||
#include <sys/timerfd.h>
|
||||
#elif PERIODIC_TASK_IMPL == RDTSC
|
||||
#include <villas/tsc.h>
|
||||
#endif
|
||||
|
||||
int task_init(struct task *t, double rate, int clock)
|
||||
|
|
Loading…
Add table
Reference in a new issue