summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/os/adjtimex.c
blob: b7a91009551d6df9079d3d788c33df26746c9dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-3.0-or-later

#include "../libnetdata.h"

int os_adjtimex(struct timex *buf __maybe_unused) {
#if defined(OS_MACOS) || defined(OS_FREEBSD)
    return ntp_adjtime(buf);
#endif

#if defined(OS_LINUX)
    return adjtimex(buf);
#endif

    errno = ENOSYS;
    return -1;
}