mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
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>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- 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>
|
||||
Reference in New Issue
Block a user