aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgtop/fix-includes.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-04 11:56:05 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-04 11:56:05 +0000
commit374cb8d3e8fc65b8dafedb1107b130ff7d522f91 (patch)
tree38769a86121ea0b5748784be6befe3d07a5ccd2e /main/libgtop/fix-includes.patch
parent64aaedf0178d8bfbb7e4f7d04c84b794e2997d88 (diff)
downloadaports-374cb8d3e8fc65b8dafedb1107b130ff7d522f91.tar.bz2
aports-374cb8d3e8fc65b8dafedb1107b130ff7d522f91.tar.xz
main/libgtop: fix musl build
Diffstat (limited to 'main/libgtop/fix-includes.patch')
-rw-r--r--main/libgtop/fix-includes.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/libgtop/fix-includes.patch b/main/libgtop/fix-includes.patch
new file mode 100644
index 0000000000..846eaff8ff
--- /dev/null
+++ b/main/libgtop/fix-includes.patch
@@ -0,0 +1,27 @@
+--- libgtop-2.28.5.orig/sysdeps/linux/netload.c
++++ libgtop-2.28.5/sysdeps/linux/netload.c
+@@ -34,8 +34,6 @@
+ #include <sys/socket.h>
+ #include <sys/ioctl.h>
+
+-#if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
+-/* GNU LibC */
+ #include <net/if.h>
+ #include <netinet/ip_icmp.h>
+ #include <netinet/in.h>
+@@ -43,15 +41,6 @@
+ #include <netinet/tcp.h>
+ #include <netinet/udp.h>
+ #include <net/if.h>
+-#else /* Libc 5 */
+-#include <linux/if.h>
+-#include <linux/in.h>
+-#include <linux/ip.h>
+-#include <linux/icmp.h>
+-#include <linux/tcp.h>
+-#include <linux/udp.h>
+-#endif
+-
+
+ #ifdef HAVE_IFADDRS_H
+ /* needed for IPV6 support */