diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-07-20 12:45:09 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-07-20 12:45:19 +0100 |
commit | 408621819a85bf67a73efd33a06ea371c20ea5a2 (patch) | |
tree | 156c7e3f8f4aeab4144f25178ed1b90ab5ea1e42 /net-dialup/linux-atm | |
parent | dev-ros/message_filters: upstream boost fix (diff) | |
download | gentoo-408621819a85bf67a73efd33a06ea371c20ea5a2.tar.gz gentoo-408621819a85bf67a73efd33a06ea371c20ea5a2.tar.bz2 gentoo-408621819a85bf67a73efd33a06ea371c20ea5a2.zip |
net-dialup/linux-atm: tweak for linux-headers-5.2
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'net-dialup/linux-atm')
-rw-r--r-- | net-dialup/linux-atm/files/linux-atm-2.5.2-linux-5.2-SIOCGSTAMP.patch | 41 | ||||
-rw-r--r-- | net-dialup/linux-atm/linux-atm-2.5.2.ebuild | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/net-dialup/linux-atm/files/linux-atm-2.5.2-linux-5.2-SIOCGSTAMP.patch b/net-dialup/linux-atm/files/linux-atm-2.5.2-linux-5.2-SIOCGSTAMP.patch new file mode 100644 index 000000000000..ff91c7f16e06 --- /dev/null +++ b/net-dialup/linux-atm/files/linux-atm-2.5.2-linux-5.2-SIOCGSTAMP.patch @@ -0,0 +1,41 @@ +Fix build failure against linux-5.2+: + https://www.spinics.net/lists/linux-sh/msg53430.html + +--- a/src/maint/atmdump.c ++++ b/src/maint/atmdump.c +@@ -17,6 +17,16 @@ + #include <netinet/in.h> /* for htonl and ntohl */ + #include <atm.h> + ++#ifndef SIOCGSTAMP ++/* linux-5.2+ added support for 64-bit time_t into ioctls ++ that support 'struct timeval' and removed 'SIOCGSTAMP' ++ define. ++ ++ Include 'SIOCGSTAMP' wrapper via linux/sockios.h ++ if does not exist. ++ */ ++# include <linux/sockios.h> ++#endif + + static const char *pti[] = { "Data SDU 0","Data SDU 1","Data SDU 0, CE", + "Data SDU 1, CE","Segment OAM F5","End-to-end OAM F5","Reserved (RM)", +--- a/src/maint/saaldump.c ++++ b/src/maint/saaldump.c +@@ -24,6 +24,16 @@ + + #define MAX_ITEM 2048 /* longest string emitted by q.dump */ + ++#ifndef SIOCGSTAMP ++/* linux-5.2+ added support for 64-bit time_t into ioctls ++ that support 'struct timeval' and removed 'SIOCGSTAMP' ++ define. ++ ++ Include 'SIOCGSTAMP' wrapper via linux/sockios.h ++ if does not exist. ++ */ ++# include <linux/sockios.h> ++#endif + + static int interval = 0; /* display absolute time by default */ + static int quiet = 0; /* decode Q.2931 messages by default */ diff --git a/net-dialup/linux-atm/linux-atm-2.5.2.ebuild b/net-dialup/linux-atm/linux-atm-2.5.2.ebuild index 3ea9f3d5e198..7bc4fa72eed5 100644 --- a/net-dialup/linux-atm/linux-atm-2.5.2.ebuild +++ b/net-dialup/linux-atm/linux-atm-2.5.2.ebuild @@ -25,6 +25,7 @@ CONFIG_CHECK="~ATM" src_prepare() { epatch "${FILESDIR}"/${P}-headers.patch + epatch "${FILESDIR}"/${P}-linux-5.2-SIOCGSTAMP.patch sed -i '/#define _LINUX_NETDEVICE_H/d' \ src/arpd/*.c || die "sed command on arpd/*.c files failed" |