aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Samorukov <samm@os2.kiev.ua>2021-01-04 01:28:39 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-01-04 13:28:28 +0100
commitf1baa4a6b4239cff069aa0b257365b12fb6ee130 (patch)
tree8721b0fc011fc3bdb6c94d3918530d27b200e4ae
parent28759d0e95cff70df9e4db319e0bcf310fbe7197 (diff)
downloadbusybox-w32-f1baa4a6b4239cff069aa0b257365b12fb6ee130.tar.gz
busybox-w32-f1baa4a6b4239cff069aa0b257365b12fb6ee130.tar.bz2
busybox-w32-f1baa4a6b4239cff069aa0b257365b12fb6ee130.zip
Fix ntpd compilcation on the FreeBSD
FreeBSD using different constant names, defining them inline Signed-off-by: Alex Samorukov <samm@os2.kiev.ua> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ntpd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 46d8f3495..1f17b08ef 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -113,6 +113,13 @@
113# define IPTOS_DSCP_AF21 0x48 113# define IPTOS_DSCP_AF21 0x48
114#endif 114#endif
115 115
116#if defined(__FreeBSD__)
117/* see sys/timex.h */
118# define adjtimex ntp_adjtime
119# define ADJ_OFFSET MOD_OFFSET
120# define ADJ_STATUS MOD_STATUS
121# define ADJ_TIMECONST MOD_TIMECONST
122#endif
116 123
117/* Verbosity control (max level of -dddd options accepted). 124/* Verbosity control (max level of -dddd options accepted).
118 * max 6 is very talkative (and bloated). 3 is non-bloated, 125 * max 6 is very talkative (and bloated). 3 is non-bloated,