aboutsummaryrefslogtreecommitdiffstats
path: root/net/44bsd-rdist
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2013-09-18 16:20:02 +0800
committercy <cy@FreeBSD.org>2013-09-18 16:20:02 +0800
commit1680f70e1ddf995a9563e81a59735572bf4842d6 (patch)
tree48d3e7de08a28767a7d513c6ac21921acd7f8231 /net/44bsd-rdist
parentc208d88accca5f59de795244b5b1516013e42713 (diff)
downloadfreebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.tar.gz
freebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.tar.zst
freebsd-ports-gnome-1680f70e1ddf995a9563e81a59735572bf4842d6.zip
Fix build under 10-CURRENT.
Diffstat (limited to 'net/44bsd-rdist')
-rw-r--r--net/44bsd-rdist/files/patch-expand.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/44bsd-rdist/files/patch-expand.c b/net/44bsd-rdist/files/patch-expand.c
new file mode 100644
index 000000000000..4c052f4e4e89
--- /dev/null
+++ b/net/44bsd-rdist/files/patch-expand.c
@@ -0,0 +1,11 @@
+--- expand.c.orig 2013-09-17 23:46:26.681322944 -0700
++++ expand.c 2013-09-18 00:29:13.792410201 -0700
+@@ -309,7 +309,7 @@
+ return;
+ goto patherr2;
+ }
+- if (fstat(dirp->dd_fd, &stb) < 0)
++ if (fstat(dirfd(dirp), &stb) < 0)
+ goto patherr1;
+ if (!ISDIR(stb.st_mode)) {
+ errno = ENOTDIR;