mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 22:54:10 +02:00
As usual, wrong defines, missing includes, need for gnu extensions, `int` instead of `socklen_t`, `Bool_t bool`, weird fixes for buggy and outdated system libraries. Included fixes for formatting in *printf(), partially cherry-picked from debian patch https://sources.debian.org/patches/linux-atm/1:2.5.1-7/misc/ Closes: https://bugs.gentoo.org/897842 Closes: https://bugs.gentoo.org/949721 Closes: https://bugs.gentoo.org/712860 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40666 Signed-off-by: Sam James <sam@gentoo.org>
31 lines
894 B
Diff
31 lines
894 B
Diff
previously was sed -i '/#define _LINUX_NETDEVICE_H/d' src/arpd/*.c in ebuild
|
|
--- a/src/arpd/arp.c
|
|
+++ b/src/arpd/arp.c
|
|
@@ -15,7 +15,6 @@
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h> /* for linux/if_arp.h */
|
|
#include <netinet/in.h> /* for ntohs, etc. */
|
|
-#define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */
|
|
#include <linux/types.h>
|
|
#include <linux/if_arp.h>
|
|
#include <linux/if_ether.h>
|
|
--- a/src/arpd/io.c
|
|
+++ b/src/arpd/io.c
|
|
@@ -21,7 +21,6 @@
|
|
#include <atm.h>
|
|
#include <linux/atmclip.h> /* for CLIP_DEFAULT_IDLETIMER */
|
|
#include <linux/atmarp.h>
|
|
-#define _LINUX_NETDEVICE_H /* glibc2 */
|
|
#include <linux/types.h>
|
|
#include <linux/if_arp.h>
|
|
|
|
--- a/src/arpd/itf.c
|
|
+++ b/src/arpd/itf.c
|
|
@@ -12,7 +12,6 @@
|
|
#include <sys/types.h>
|
|
#include <linux/atmclip.h>
|
|
#include <sys/socket.h>
|
|
-#define _LINUX_NETDEVICE_H /* glibc2 */
|
|
#include <linux/types.h>
|
|
#include <linux/if_arp.h>
|
|
|