summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/adjtimex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnetdata/os/adjtimex.h')
-rw-r--r--src/libnetdata/os/adjtimex.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libnetdata/os/adjtimex.h b/src/libnetdata/os/adjtimex.h
new file mode 100644
index 00000000..d37ebf88
--- /dev/null
+++ b/src/libnetdata/os/adjtimex.h
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_ADJTIMEX_H
+#define NETDATA_ADJTIMEX_H
+
+#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_MACOS)
+#include <sys/timex.h>
+#endif
+
+struct timex;
+int os_adjtimex(struct timex *buf);
+
+#endif //NETDATA_ADJTIMEX_H