summaryrefslogtreecommitdiff
path: root/daemons/gptp/linux/src/linux_hal_generic_adj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/gptp/linux/src/linux_hal_generic_adj.cpp')
-rw-r--r--daemons/gptp/linux/src/linux_hal_generic_adj.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/daemons/gptp/linux/src/linux_hal_generic_adj.cpp b/daemons/gptp/linux/src/linux_hal_generic_adj.cpp
index f722ac4a..7f1d59c8 100644
--- a/daemons/gptp/linux/src/linux_hal_generic_adj.cpp
+++ b/daemons/gptp/linux/src/linux_hal_generic_adj.cpp
@@ -31,10 +31,8 @@
******************************************************************************/
-#include <linux/timex.h>
- // avoid indirect inclusion of time.h since this will clash with linux/timex.h
-#define _TIME_H 1
-#define _STRUCT_TIMEVAL 1
+#include <sys/timex.h>
+#define ADJ_SETOFFSET 0x0100 // Missing from older header files
#include <linux_hal_generic.hpp>
#include <syscall.h>
#include <math.h>