mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-29 07:00:21 +00:00
fix(main/chrony): build with NDK r27 (#21200)
This commit is contained in:
17
packages/chrony/0001-missing-ethtool_cmd_speed.patch
Normal file
17
packages/chrony/0001-missing-ethtool_cmd_speed.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
--- a/ntp_io_linux.c
|
||||
+++ b/ntp_io_linux.c
|
||||
@@ -49,6 +49,14 @@
|
||||
#include "sys_linux.h"
|
||||
#include "util.h"
|
||||
|
||||
+// missing in NDK linux/ethtool.h
|
||||
+#if defined(__ANDROID__)
|
||||
+static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep)
|
||||
+{
|
||||
+ return (ep->speed_hi << 16) | ep->speed;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
struct Interface {
|
||||
char name[IF_NAMESIZE];
|
||||
int if_index;
|
||||
@@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="chrony is an implementation of the Network Time Protocol
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="4.5"
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_REVISION=4
|
||||
TERMUX_PKG_SRCURL=https://chrony-project.org/releases/chrony-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=19fe1d9f4664d445a69a96c71e8fdb60bcd8df24c73d1386e02287f7366ad422
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
|
||||
Reference in New Issue
Block a user