diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-10-04 11:56:05 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-10-04 11:56:05 +0000 |
commit | 374cb8d3e8fc65b8dafedb1107b130ff7d522f91 (patch) | |
tree | 38769a86121ea0b5748784be6befe3d07a5ccd2e /main/libgtop/fix-includes.patch | |
parent | 64aaedf0178d8bfbb7e4f7d04c84b794e2997d88 (diff) | |
download | aports-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.patch | 27 |
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 */ |