diff --git a/iputils-ss021109-open_max.diff b/iputils-ss021109-open_max.diff new file mode 100644 index 0000000..00c7866 --- /dev/null +++ b/iputils-ss021109-open_max.diff @@ -0,0 +1,13 @@ +Index: iputils/rdisc.c +=================================================================== +--- iputils.orig/rdisc.c 2007-12-12 15:41:01.000000000 +0100 ++++ iputils/rdisc.c 2007-12-12 15:42:15.000000000 +0100 +@@ -246,7 +246,7 @@ void do_fork(void) + if ((pid=fork()) != 0) + exit(0); + +- for (t = 0; t < OPEN_MAX; t++) ++ for (t = 0; t < sysconf(_SC_OPEN_MAX); t++) + if (t != s) + close(t); + diff --git a/iputils.changes b/iputils.changes index e420830..a956a07 100644 --- a/iputils.changes +++ b/iputils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 12 15:44:07 CET 2007 - rguenther@suse.de + +- use sysconf(_SC_OPEN_MAX) instead of OPEN_MAX to fix build + ------------------------------------------------------------------- Tue Mar 6 09:14:02 CET 2007 - ms@suse.de diff --git a/iputils.spec b/iputils.spec index 73dc9d3..a1f8a2c 100644 --- a/iputils.spec +++ b/iputils.spec @@ -13,12 +13,12 @@ Name: iputils Summary: IPv4and IPv6 Networking Utilities Version: ss021109 -Release: 198 -License: BSD License and BSD-like, GNU General Public License (GPL) +Release: 237 +License: BSD 3-Clause; GPL v2 or later Group: Productivity/Networking/Other Provides: nkitb Obsoletes: nkitb -URL: ftp://ftp.tux.org/people/alexey-kuznetsov/ip-routing +Url: ftp://ftp.tux.org/people/alexey-kuznetsov/ip-routing Source: iputils-%{version}-try.tar.bz2 Patch: %name-%version.diff Patch1: %name-%version-rdisc-server.patch @@ -37,6 +37,7 @@ Patch13: %name-HZ.patch Patch14: %name-%version-ping6_getaddrinfo.patch Patch15: %name-%version-ping_common.dif Patch16: %name-ss021109-traceroute6-ttab.diff +Patch17: %name-%version-open_max.diff Prefix: %_prefix BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -69,6 +70,7 @@ Authors: %patch14 %patch15 %patch16 +%patch17 -p1 mkdir linux touch linux/autoconf.h @@ -115,6 +117,8 @@ rm -rf $RPM_BUILD_ROOT %attr(644,root,root) %_mandir/man8/* %changelog +* Wed Dec 12 2007 - rguenther@suse.de +- use sysconf(_SC_OPEN_MAX) instead of OPEN_MAX to fix build * Tue Mar 06 2007 - ms@suse.de - fixed overbound ttab2 array access (#251195) * Wed Dec 06 2006 - ms@suse.de