ports/misc/findutils/files/patch-gnulib-lib-fdopendir.c
Tilman Keskinoz 00eb35a3d0 Fix a segfault on 7.x amd64
PR:		157274
Reported by:	Fabian Wenk
Submitted by:	maintainer
2011-06-04 19:02:48 +00:00

15 lines
354 B
C

--- gnulib/lib/fdopendir.c.orig 2011-04-02 15:37:38.000000000 +0000
+++ gnulib/lib/fdopendir.c 2011-05-30 21:05:02.000000000 +0000
@@ -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 *