Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
net-snmp
> net-snmp-5.3.0.1_ethtool.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File net-snmp-5.3.0.1_ethtool.patch of Package net-snmp (Revision 2)
Currently displaying revision
2
,
show latest
Index: configure.in =================================================================== --- configure.in.orig +++ configure.in @@ -2639,10 +2639,11 @@ # linux ethtool AC_CHECK_HEADERS(linux/ethtool.h,,, [[ -#include <linux/types.h> -#if HAVE_PCI_PCI_H -#include <pci/pci.h> -#endif +#include <sys/types.h> +typedef unsigned long long u64; /* hack, so we may include kernel's ethtool.h */ +typedef __uint32_t u32; /* ditto */ +typedef __uint16_t u16; /* ditto */ +typedef __uint8_t u8; /* ditto */ ]]) # BSDi3 headers AC_CHECK_HEADERS(sys/stat.h sys/vnode.h) Index: agent/mibgroup/if-mib/data_access/interface_linux.c =================================================================== --- agent/mibgroup/if-mib/data_access/interface_linux.c.orig +++ agent/mibgroup/if-mib/data_access/interface_linux.c @@ -24,12 +24,11 @@ #include <sys/types.h> #ifdef HAVE_LINUX_ETHTOOL_H -# ifdef HAVE_ASM_TYPES_H -# include <asm/types.h> -# endif /* HAVE_ASM_TYPES_H */ -# ifdef HAVE_PCI_PCI_H -# include <pci/pci.h> /* for u32 typedef in linux/ethtool */ -# endif /* HAVE_PCI_PCI_H */ +#include <sys/types.h> +typedef unsigned long long u64; /* hack, so we may include kernel's ethtool.h */ +typedef __uint32_t u32; /* ditto */ +typedef __uint16_t u16; /* ditto */ +typedef __uint8_t u8; /* ditto */ #include <linux/ethtool.h> #endif /* HAVE_LINUX_ETHTOOL_H */ #include <linux/sockios.h>