openwrtv3/package/network/utils/iputils/patches/010-include.patch
John Crispin 77d3ac8e3e iputils: switch to new upstream
Signed-off-by: John Crispin <john@phrozen.org>
2017-08-23 16:31:35 +02:00

99 lines
2.8 KiB
Diff

Index: iputils-s20101006/tracepath.c
===================================================================
--- iputils-s20101006.orig/tracepath.c
+++ iputils-s20101006/tracepath.c
@@ -14,13 +14,13 @@
#include <unistd.h>
#include <sys/socket.h>
#include <linux/types.h>
+#include <sys/time.h>
#include <linux/errqueue.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <resolv.h>
-#include <sys/time.h>
#include <sys/uio.h>
#include <arpa/inet.h>
Index: iputils-s20101006/ping_common.h
===================================================================
--- iputils-s20101006.orig/ping_common.h
+++ iputils-s20101006/ping_common.h
@@ -7,11 +7,11 @@
#include <linux/sockios.h>
#include <sys/file.h>
#include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/uio.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
@@ -20,7 +20,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <linux/types.h>
+#include <sys/types.h>
#include <linux/errqueue.h>
+#include <asm/param.h>
#include "SNAPSHOT.h"
Index: iputils-s20101006/clockdiff.c
===================================================================
--- iputils-s20101006.orig/clockdiff.c
+++ iputils-s20101006/clockdiff.c
@@ -14,7 +14,6 @@
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#define TSPTYPES
-#include <protocols/timed.h>
#include <fcntl.h>
#include <netdb.h>
#include <arpa/inet.h>
Index: iputils-s20101006/Makefile
===================================================================
--- iputils-s20101006.orig/Makefile
+++ iputils-s20101006/Makefile
@@ -16,7 +16,7 @@ CC=gcc
CCOPT=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g
CFLAGS=$(CCOPT) $(GLIBCFIX) $(DEFINES)
-IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd
+IPV4_TARGETS=tracepath ping clockdiff arping tftpd
IPV6_TARGETS=tracepath6 traceroute6 ping6
TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
@@ -27,9 +27,11 @@ all: $(TARGETS)
tftpd: tftpd.o tftpsubs.o
-arping: arping.o -lsysfs
+arping: arping.o
+ $(CC) $(CFLAGS) -o $@ arping.o -lsysfs
ping: ping.o ping_common.o
-ping6: ping6.o ping_common.o -lresolv -lcrypto
+ping6: ping6.o ping_common.o
+ $(CC) $(CFLAGS) -o $@ ping6.o ping_common.o -lresolv -lcrypto
ping.o ping6.o ping_common.o: ping_common.h
tftpd.o tftpsubs.o: tftp.h
Index: iputils-s20101006/arping.c
===================================================================
--- iputils-s20101006.orig/arping.c
+++ iputils-s20101006/arping.c
@@ -15,7 +15,7 @@
#include <linux/sockios.h>
#include <sys/file.h>
#include <sys/time.h>
-#include <sys/signal.h>
+#include <signal.h>
#include <sys/ioctl.h>
#include <linux/if.h>
#include <linux/if_packet.h>