void-packages/srcpkgs/libgtop/patches/fix-includes.patch

28 lines
611 B
Diff
Raw Normal View History

--- sysdeps/linux/netload.c
+++ 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 */