--- /dev/null
+--- e1000e-1.1.2/src/ethtool.c~ 2009-10-31 01:02:06.000000000 +0100
++++ e1000e-1.1.2/src/ethtool.c 2010-03-07 19:01:52.167295997 +0100
+@@ -2036,8 +2036,10 @@
+ .get_strings = e1000_get_strings,
+ .phys_id = e1000_phys_id,
+ .get_ethtool_stats = e1000_get_ethtool_stats,
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33) )
+ .self_test_count = e1000_get_self_test_count,
+ .get_stats_count = e1000_get_stats_count,
++#endif
+ .get_coalesce = e1000_get_coalesce,
+ .set_coalesce = e1000_set_coalesce,
+ #ifdef NETIF_F_LRO
Group: Base/Kernel
Source0: http://dl.sourceforge.net/e1000/%{pname}-%{version}.tar.gz
# Source0-md5: 896aae3699f4268228da5c4e14ae8e2f
+Patch0: %{pname}-kernel.patch
URL: http://dl.sourceforge.net/e1000/
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
BuildRequires: rpmbuild(macros) >= 1.379
%prep
%setup -q -n %{pname}-%{version}
+%patch0 -p1
cat > src/Makefile <<'EOF'
obj-m := e1000e.o
e1000e-objs := netdev.o ethtool.o param.o e1000_82571.o e1000_ich8lan.o \