freebsd-ports/sysutils/busybox/files/patch-networking_ntpd.c
Fernando Apesteguía 48f13d913e sysutils/busybox: update to 1.30.1
* Hand maintainership over to samm@os2.kiev.ua
* The port needs to be built with GCC on i386

PR:     238915
Submitted by:   samm@os2.kiev.ua
2019-07-16 15:18:06 +00:00

15 lines
425 B
C

--- networking/ntpd.c.orig 2018-12-30 15:14:20 UTC
+++ networking/ntpd.c
@@ -114,6 +114,12 @@
# define IPTOS_DSCP_AF21 0x48
#endif
+#ifdef __FreeBSD__
+#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).
* max 6 is very talkative (and bloated). 3 is non-bloated,