Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4175 from cdu13a/connman-fix1
[le92] connman: fix compile with older headers
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/network/connman/patches/connman-08-fix_for_building_with_old_headers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |