summaryrefslogtreecommitdiffstats
path: root/libnetdata/os.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
commitbb50acdcb8073654ea667b8c0272e335bd43f844 (patch)
tree1e00c8a29871426f8182658928dcb62e42d57ce8 /libnetdata/os.h
parentReleasing debian version 1.33.1-1. (diff)
downloadnetdata-bb50acdcb8073654ea667b8c0272e335bd43f844.tar.xz
netdata-bb50acdcb8073654ea667b8c0272e335bd43f844.zip
Merging upstream version 1.34.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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