diff mbox series

[OpenWrt-Devel,1/3] linux-atm: Fix build with glibc

Message ID 20200323225540.10886-1-hauke@hauke-m.de
State Superseded
Delegated to: Hauke Mehrtens
Headers show
Series [OpenWrt-Devel,1/3] linux-atm: Fix build with glibc | expand

Commit Message

Hauke Mehrtens March 23, 2020, 10:55 p.m. UTC
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@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 mbox series

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