ports/misc/findutils/files/patch-gl_lib_fdopendir.c
Rainer Hurling 927f7c2f11 misc/findutils update to 4.8.0
Changelog: https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00044.html

PR:		252558
Submitted by:	Klaus Aehlig <aehlig@linta.de> (maintainer)
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D28101
2021-01-11 21:15:39 +00:00

14 lines
352 B
C

--- gl/lib/fdopendir.c.orig 2021-01-01 18:54:11 UTC
+++ gl/lib/fdopendir.c
@@ -227,9 +227,11 @@ fd_clone_opendir (int fd, struct saved_cwd const *cwd)
# 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 *