summaryrefslogtreecommitdiffstats
path: root/libnetdata/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnetdata/os.h')
-rw-r--r--libnetdata/os.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libnetdata/os.h b/libnetdata/os.h
index 7872f82b9..5e7746df8 100644
--- a/libnetdata/os.h
+++ b/libnetdata/os.h
@@ -57,4 +57,11 @@ extern pid_t get_system_pid_max(void);
extern unsigned int system_hz;
extern void get_system_HZ(void);
+#include <sys/timex.h>
+#if defined(__FreeBSD__) || defined(__APPLE__)
+#define ADJUST_TIMEX(x) ntp_adjtime(x)
+#else
+#define ADJUST_TIMEX(x) adjtimex(x)
+#endif
+
#endif //NETDATA_OS_H