summaryrefslogtreecommitdiff
path: root/archivers/gtar/files/patch-gnu_dirent.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gtar/files/patch-gnu_dirent.in.h')
-rw-r--r--archivers/gtar/files/patch-gnu_dirent.in.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/archivers/gtar/files/patch-gnu_dirent.in.h b/archivers/gtar/files/patch-gnu_dirent.in.h
new file mode 100644
index 000000000000..857d9bf2c0f4
--- /dev/null
+++ b/archivers/gtar/files/patch-gnu_dirent.in.h
@@ -0,0 +1,16 @@
+$FreeBSD$
+
+7.x up to 7.3 lacks the fdopendir() prototype in <dirent.h>.
+
+--- gnu/dirent.in.h.orig 2010-03-29 17:48:45.000000000 +0200
++++ gnu/dirent.in.h 2010-03-29 17:49:00.000000000 +0200
+@@ -79,9 +79,7 @@ _GL_WARN_ON_USE (dirfd, "dirfd is unport
+ _GL_FUNCDECL_RPL (fdopendir, DIR *, (int fd));
+ _GL_CXXALIAS_RPL (fdopendir, DIR *, (int fd));
+ # else
+-# if !@HAVE_FDOPENDIR@
+ _GL_FUNCDECL_SYS (fdopendir, DIR *, (int fd));
+-# endif
+ _GL_CXXALIAS_SYS (fdopendir, DIR *, (int fd));
+ # endif
+ _GL_CXXALIASWARN (fdopendir);