- fix rtnetlink.h/if_addr.h

This commit is contained in:
Radek Vokál 2006-12-07 11:50:05 +00:00
parent 19e887cb91
commit dbe2369e3f
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- net-snmp-5.4/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c.old 2006-09-15 02:48:40.000000000 +0200
+++ net-snmp-5.4/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c 2006-12-07 12:35:27.000000000 +0100
@@ -19,7 +19,8 @@
#if defined (NETSNMP_ENABLE_IPV6)
#include <linux/types.h>
#include <asm/types.h>
-#include <linux/rtnetlink.h>
+/* #include <linux/rtnetlink.h> */
+#include <linux/if_addr.h>
#endif
#include "ipaddress_ioctl.h"

View File

@ -7,7 +7,7 @@
Summary: A collection of SNMP protocol tools and libraries Summary: A collection of SNMP protocol tools and libraries
Name: net-snmp Name: net-snmp
Version: %{major_ver} Version: %{major_ver}
Release: 3%{?dist} Release: 4%{?dist}
Epoch: 1 Epoch: 1
License: BSDish License: BSDish
@ -31,6 +31,7 @@ Patch6: net-snmp-5.1.2-dir-fix.patch
Patch7: net-snmp-5.2.1-file_offset.patch Patch7: net-snmp-5.2.1-file_offset.patch
Patch8: net-snmp-5.3.1-multilib.patch Patch8: net-snmp-5.3.1-multilib.patch
Patch9: net-snmp-5.4-config_libdir.patch Patch9: net-snmp-5.4-config_libdir.patch
Patch10: net-snmp-5.4-if_addr.patch
Requires(pre): /sbin/chkconfig Requires(pre): /sbin/chkconfig
Obsoletes: ucd-snmp Obsoletes: ucd-snmp
@ -134,6 +135,7 @@ and applications.
%patch7 -p1 -b .file_offset %patch7 -p1 -b .file_offset
%patch8 -p1 -b .multilib %patch8 -p1 -b .multilib
%patch9 -p1 -b .libdir %patch9 -p1 -b .libdir
%patch10 -p1 -b .if_addr
# Do this patch with a perl hack... # Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
@ -345,6 +347,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%changelog %changelog
* Thu Dec 7 2006 Radek Vokál <rvokal@redhat.com> - 5.4-4
- fix rtnetlink.h/if_addr.h
* Thu Dec 7 2006 Joe Orton <jorton@redhat.com> - 5.4-3 * Thu Dec 7 2006 Joe Orton <jorton@redhat.com> - 5.4-3
- add Requires for tcp_wrappers-devel for -devel - add Requires for tcp_wrappers-devel for -devel