diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-10-15 05:51:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-10-15 05:51:17 +0000 |
commit | cb0a727000dbe8d8c2f3ef6ed6b3d4e09f68ff63 (patch) | |
tree | 296e111397664614f0733632424d0f1837afc4f0 /net-misc/iputils/files | |
parent | stable on ppc64 (diff) | |
download | gentoo-2-cb0a727000dbe8d8c2f3ef6ed6b3d4e09f68ff63.tar.gz gentoo-2-cb0a727000dbe8d8c2f3ef6ed6b3d4e09f68ff63.tar.bz2 gentoo-2-cb0a727000dbe8d8c2f3ef6ed6b3d4e09f68ff63.zip |
Fix building with newer kernel headers that lack OPEN_MAX #195861 by Markus Meier.
(Portage version: 2.1.3.13)
Diffstat (limited to 'net-misc/iputils/files')
-rw-r--r-- | net-misc/iputils/files/iputils-20070202-no-open-max.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/iputils/files/iputils-20070202-no-open-max.patch b/net-misc/iputils/files/iputils-20070202-no-open-max.patch new file mode 100644 index 000000000000..5013ba4fdc06 --- /dev/null +++ b/net-misc/iputils/files/iputils-20070202-no-open-max.patch @@ -0,0 +1,16 @@ +the OPEN_MAX define has been removed in newer kernel headers so use the +proper method of getting the value dynamically + +http://bugs.gentoo.org/195861 + +--- a/rdisc.c ++++ b/rdisc.c +@@ -247,7 +247,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); + |