aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2003-04-19 06:04:29 +0000
committerDoug Barton <dougb@FreeBSD.org>2003-04-19 06:04:29 +0000
commitbcfe75acbc2e5c3bb3ed7fa06dbe62e7da1d4055 (patch)
tree008b24f7de41888692caef15a1610c56ae0ff3e5 /x11
parent4f48ff96b7b5fa43a0ae9c819d93b1748a78011d (diff)
downloadports-bcfe75acbc2e5c3bb3ed7fa06dbe62e7da1d4055.tar.gz
ports-bcfe75acbc2e5c3bb3ed7fa06dbe62e7da1d4055.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/xscreensaver/files/patch-driver_xscreensaver-getimage-file20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/xscreensaver/files/patch-driver_xscreensaver-getimage-file b/x11/xscreensaver/files/patch-driver_xscreensaver-getimage-file
new file mode 100644
index 000000000000..5a9ed975f5ff
--- /dev/null
+++ b/x11/xscreensaver/files/patch-driver_xscreensaver-getimage-file
@@ -0,0 +1,20 @@
+--- driver/xscreensaver-getimage-file.orig Sun Jan 19 21:27:38 2003
++++ driver/xscreensaver-getimage-file Fri Apr 18 23:02:37 2003
+@@ -42,7 +42,7 @@
+ # So we do it like this instead:
+ #
+ BEGIN {
+- if (! defined(&S_ISLNK)) { # perhaps defined by "POSIX"?
++ if ((! defined(&S_ISLNK)) and ($] > 5.6)) { # perhaps defined by "POSIX"?
+ require Fcntl;
+ import Fcntl ':mode'; # if not, look for it in "Fcntl".
+ }
+@@ -139,7 +139,7 @@
+ if (S_ISDIR($mode)) {
+ push @dirs, $file;
+ print STDERR "$progname: found dir $file\n" if ($verbose > 2);
+- } elsif (S_ISREG($mode) || S_ISLNK($mode)) {
++ } elsif (S_ISREG($mode) || (-l "$file")) {
+ push @all_files, $file;
+ print STDERR "$progname: found file $file\n" if ($verbose > 2);
+ } elsif ($verbose > 2) {