master
h 18 lines 386 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_ADJTIMEX_H
4 #define NETDATA_ADJTIMEX_H
5
6 #ifdef OS_MACOS
7 #include <AvailabilityMacros.h>
8 #endif
9
10 #if defined(OS_LINUX) || defined(OS_FREEBSD) || \
11 (defined(OS_MACOS) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 101300))
12 #include <sys/timex.h>
13 #endif
14
15 struct timex;
16 int os_adjtimex(struct timex *buf);
17
18 #endif //NETDATA_ADJTIMEX_H