[OpenWrt-Devel] [PATCH 1/3] linux-atm: Fix build with glibc
Hauke Mehrtens
hauke at hauke-m.de
Mon Mar 23 18:55:38 EDT 2020
Without this change linux-atm does not build any more with glibc and
kernel 5.4, because SIOCGSTAMP is missing. This patch adds a missing
include to fix this compile problem.
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../patches/410-missing-SIOCGSTAMP.patch | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 package/network/utils/linux-atm/patches/410-missing-SIOCGSTAMP.patch
diff --git a/package/network/utils/linux-atm/patches/410-missing-SIOCGSTAMP.patch b/package/network/utils/linux-atm/patches/410-missing-SIOCGSTAMP.patch
new file mode 100644
index 000000000000..3288466e3405
--- /dev/null
+++ b/package/network/utils/linux-atm/patches/410-missing-SIOCGSTAMP.patch
@@ -0,0 +1,20 @@
+--- a/src/maint/atmdump.c
++++ b/src/maint/atmdump.c
+@@ -16,6 +16,7 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h> /* for htonl and ntohl */
+ #include <atm.h>
++#include <linux/sockios.h>
+
+
+ static const char *pti[] = { "Data SDU 0","Data SDU 1","Data SDU 0, CE",
+--- a/src/maint/saaldump.c
++++ b/src/maint/saaldump.c
+@@ -16,6 +16,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <atm.h>
++#include <linux/sockios.h>
+
+ #include "pdu.h"
+ #define DUMP_MODE
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list