diff options
author | 2007-10-15 05:51:17 +0000 | |
---|---|---|
committer | 2007-10-15 05:51:17 +0000 | |
commit | 316083451680a4b24992152ae99e3152ea8f69e4 (patch) | |
tree | d37c8b44f1c491ee25a9f70aa98e57d98b3afd18 /net-misc/iputils/files | |
parent | stable on ppc64 (diff) | |
download | historical-316083451680a4b24992152ae99e3152ea8f69e4.tar.gz historical-316083451680a4b24992152ae99e3152ea8f69e4.tar.bz2 historical-316083451680a4b24992152ae99e3152ea8f69e4.zip |
Fix building with newer kernel headers that lack OPEN_MAX #195861 by Markus Meier.
Package-Manager: portage-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); + |