diff options
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 */ |