]> git.pld-linux.org Git - packages/e1000e.git/commitdiff
- 2.6.33 build fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 7 Mar 2010 18:03:27 +0000 (18:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    e1000e-kernel.patch -> 1.1
    e1000e.spec -> 1.72

e1000e-kernel.patch [new file with mode: 0644]
e1000e.spec

diff --git a/e1000e-kernel.patch b/e1000e-kernel.patch
new file mode 100644 (file)
index 0000000..a356878
--- /dev/null
@@ -0,0 +1,13 @@
+--- 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
index 47a3d12ff3c469e78dfec7702bfa194f90f4381b..bd7e533c3346cc4235e29fcbdc170f5708680201 100644 (file)
@@ -28,6 +28,7 @@ License:      GPL v2
 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
@@ -83,6 +84,7 @@ stworzony aby pracować z kartami gigabitowymi rodziny Intel®
 
 %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 \
This page took 0.027022 seconds and 4 git commands to generate.