packages/net/ntpclient/patches/300-siocgarp.patch
Rosen Penev 1253beb2fe
ntpclient: fix compilation with newer kernels
glibc needs an extra header included.

Also cast time values to 64-bit in preparation for 64-bit time_t for
32-bit platforms.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-07 19:53:35 -07:00

12 lines
246 B
Diff

--- a/ntpclient.c
+++ b/ntpclient.c
@@ -42,6 +42,9 @@
#include <errno.h>
#ifdef PRECISION_SIOCGSTAMP
#include <sys/ioctl.h>
+#ifdef __GLIBC__
+#include <linux/sockios.h>
+#endif
#endif
#ifdef USE_OBSOLETE_GETTIMEOFDAY
#include <sys/time.h>