Move all patches to templates/$pkgname/patches.
There's no need to set patch_files/patch_args anymore, all patches in this directory will be applied with -Np0 and they have .diff or .patch (and .gz/.bz2) extension. --HG-- extra : convert_revision : 8d516c033fe34db94ebbcc84c246e84fc96ed901
This commit is contained in:
16
templates/iputils/patches/fix_rdisc.c.diff
Normal file
16
templates/iputils/patches/fix_rdisc.c.diff
Normal file
@@ -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
|
||||
|
||||
--- rdisc.c
|
||||
+++ 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);
|
||||
|
||||
Reference in New Issue
Block a user