packages/net/ntpclient/patches/300-siocgarp.patch
Rosen Penev cd79e92885
ntpclient: fixup time patch
Added missing header and added casts.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-11 19:52:44 -07:00

12 lines
246 B
Diff

--- a/ntpclient.c
+++ b/ntpclient.c
@@ -43,6 +43,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>