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>
This commit is contained in:
parent
28759d0e95
commit
f1baa4a6b4
@ -113,6 +113,13 @@
|
|||||||
# define IPTOS_DSCP_AF21 0x48
|
# define IPTOS_DSCP_AF21 0x48
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
/* see sys/timex.h */
|
||||||
|
# define adjtimex ntp_adjtime
|
||||||
|
# define ADJ_OFFSET MOD_OFFSET
|
||||||
|
# define ADJ_STATUS MOD_STATUS
|
||||||
|
# define ADJ_TIMECONST MOD_TIMECONST
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Verbosity control (max level of -dddd options accepted).
|
/* Verbosity control (max level of -dddd options accepted).
|
||||||
* max 6 is very talkative (and bloated). 3 is non-bloated,
|
* max 6 is very talkative (and bloated). 3 is non-bloated,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user