← Commit list

f1baa4a6b

Alex Samorukov
Alex Samorukov
2021-01-04
SUCCESS Duration: 302s

Subject

Fix ntpd compilcation on the FreeBSD

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ntpd.c+7 -0
@@ -113,6 +113,13 @@
# define IPTOS_DSCP_AF21 0x48
#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).
* max 6 is very talkative (and bloated). 3 is non-bloated,