Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/iputils/files: iputils-20070202-no-open-max.patch
Date: Mon, 15 Oct 2007 06:01:33
Message-Id: E1IhIrF-0001DQ-Qw@stork.gentoo.org
1 vapier 07/10/15 05:51:17
2
3 Added: iputils-20070202-no-open-max.patch
4 Log:
5 Fix building with newer kernel headers that lack OPEN_MAX #195861 by Markus Meier.
6 (Portage version: 2.1.3.13)
7
8 Revision Changes Path
9 1.1 net-misc/iputils/files/iputils-20070202-no-open-max.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iputils/files/iputils-20070202-no-open-max.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iputils/files/iputils-20070202-no-open-max.patch?rev=1.1&content-type=text/plain
13
14 Index: iputils-20070202-no-open-max.patch
15 ===================================================================
16 the OPEN_MAX define has been removed in newer kernel headers so use the
17 proper method of getting the value dynamically
18
19 http://bugs.gentoo.org/195861
20
21 --- a/rdisc.c
22 +++ b/rdisc.c
23 @@ -247,7 +247,7 @@ void do_fork(void)
24 if ((pid=fork()) != 0)
25 exit(0);
26
27 - for (t = 0; t < OPEN_MAX; t++)
28 + for (t = 0; t < sysconf(_SC_OPEN_MAX); t++)
29 if (t != s)
30 close(t);
31
32
33
34
35 --
36 gentoo-commits@g.o mailing list