freebsd-ports/misc/findutils/files/patch-gnulib-lib-fdopendir.c
Ruslan Makhmatkhanov 284e2d97a1 - update to 4.5.11, see changelog [1]
- add upstream bug-fix that preventing some segfaults [2]

while here:
- trim Makefile header
- remove indefinite article from COMMENT
- convert to optionsng (NLS case)

[1] http://lists.gnu.org/archive/html/bug-findutils/2013-02/msg00000.html
[2] http://savannah.gnu.org/bugs/?38239

PR:		175812
Submitted by:	Klaus Aehlig <aehlig@linta.de> (maintainer)
2013-02-17 05:33:16 +00:00

14 lines
345 B
C

--- gl/lib/fdopendir.c.orig 2012-12-15 14:42:45.000000000 +0100
+++ gl/lib/fdopendir.c 2013-02-02 17:11:52.000000000 +0100
@@ -182,9 +182,11 @@
# include <errno.h>
# include <sys/stat.h>
+# include <dirent.h>
# undef fdopendir
+extern DIR *fdopendir(int);
/* Like fdopendir, but work around GNU/Hurd bug by validating FD. */
DIR *