mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
connman: fix compile with older headers
This commit is contained in:
parent
6536838edc
commit
5d2454fe5f
@ -0,0 +1,27 @@
|
||||
diff --git a/src/shared/mnlg.c b/src/shared/mnlg.c
|
||||
index 6b02059d..b2f71941 100644
|
||||
--- a/src/shared/mnlg.c
|
||||
+++ b/src/shared/mnlg.c
|
||||
@@ -28,6 +28,22 @@
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
|
||||
#endif
|
||||
|
||||
+#ifndef NETLINK_CAP_ACK
|
||||
+#define NETLINK_CAP_ACK 10
|
||||
+#endif /* NETLINK_CAP_ACK */
|
||||
+/* support for extack if compilation headers are too old */
|
||||
+#ifndef NETLINK_EXT_ACK
|
||||
+#define NETLINK_EXT_ACK 11
|
||||
+enum nlmsgerr_attrs {
|
||||
+ NLMSGERR_ATTR_UNUSED,
|
||||
+ NLMSGERR_ATTR_MSG,
|
||||
+ NLMSGERR_ATTR_OFFS,
|
||||
+ NLMSGERR_ATTR_COOKIE,
|
||||
+
|
||||
+ __NLMSGERR_ATTR_MAX,
|
||||
+ NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1
|
||||
+};
|
||||
+#endif
|
||||
|
||||
struct mnlg_socket {
|
||||
struct mnl_socket *nl;
|
Loading…
x
Reference in New Issue
Block a user