Fix a segfault on 7.x amd64

PR:		157274
Reported by:	Fabian Wenk
Submitted by:	maintainer
This commit is contained in:
Tilman Keskinoz 2011-06-04 19:02:48 +00:00
parent 1b4f975f98
commit 00eb35a3d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275067
2 changed files with 16 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= findutils
PORTVERSION= 4.5.10
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_GNU_ALPHA}
MASTER_SITE_SUBDIR= findutils

View file

@ -0,0 +1,15 @@
--- 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 *