aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gamin
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-02-15 01:46:36 +0800
committermarcus <marcus@FreeBSD.org>2006-02-15 01:46:36 +0800
commit448c84014965ef859440a392c5064e61f83401ea (patch)
tree24b2dc59ac41dd80377c31dadc0d650604671eea /devel/gamin
parent00a6da478f743fe2725907fee0d060c6720eceb0 (diff)
downloadfreebsd-ports-gnome-448c84014965ef859440a392c5064e61f83401ea.tar.gz
freebsd-ports-gnome-448c84014965ef859440a392c5064e61f83401ea.tar.zst
freebsd-ports-gnome-448c84014965ef859440a392c5064e61f83401ea.zip
Fix build on 4.X.
PR: 93271
Diffstat (limited to 'devel/gamin')
-rw-r--r--devel/gamin/files/patch-tests_testing.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/devel/gamin/files/patch-tests_testing.c b/devel/gamin/files/patch-tests_testing.c
index 3485162572c0..35097790d8bc 100644
--- a/devel/gamin/files/patch-tests_testing.c
+++ b/devel/gamin/files/patch-tests_testing.c
@@ -1,6 +1,19 @@
---- tests/testing.c.orig Thu Oct 27 12:51:03 2005
-+++ tests/testing.c Tue Feb 7 08:10:40 2006
-@@ -486,9 +486,9 @@
+--- tests/testing.c.orig Thu Oct 27 10:51:03 2005
++++ tests/testing.c Tue Feb 14 17:46:01 2006
+@@ -376,11 +376,11 @@ processCommand(char *line, int no)
+ }
+ printf("chmod %s to %s\n", arg, arg2);
+ } else if (!strcmp(command, "chown")) {
++ struct stat sb;
+ if (args != 3) {
+ fprintf(stderr, "chown line %d: lacks path and owner\n", no);
+ return (-1);
+ }
+- struct stat sb;
+ if (!lstat (arg, &sb)) {
+ ret = (S_ISLNK (sb.st_mode)) ?
+ lchown(arg, strtol(arg2, NULL, 10), -1) :
+@@ -486,9 +486,9 @@ processCommand(char *line, int no)
return (-1);
}
/*