aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-04-11 11:48:04 +0800
committerkan <kan@FreeBSD.org>2007-04-11 11:48:04 +0800
commitcb0f9c6fe02ab8d8196460cf1cbd310c745bdba9 (patch)
tree541a1969969bd2a20bcc43a852c6bd68eafd4833 /sysutils
parentde7d7c806b050607abd28601a4d97f2f4fee4bdc (diff)
downloadfreebsd-ports-gnome-cb0f9c6fe02ab8d8196460cf1cbd310c745bdba9.tar.gz
freebsd-ports-gnome-cb0f9c6fe02ab8d8196460cf1cbd310c745bdba9.tar.zst
freebsd-ports-gnome-cb0f9c6fe02ab8d8196460cf1cbd310c745bdba9.zip
Add patch to actually return 0 on function success. GCC 4.1 trips over
this bug, while gcc 3.4 lets it slide.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/e2fsprogs/files/patch-lib_ext2fs_ismounted.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/e2fsprogs/files/patch-lib_ext2fs_ismounted.c b/sysutils/e2fsprogs/files/patch-lib_ext2fs_ismounted.c
new file mode 100644
index 000000000000..c914ac386cac
--- /dev/null
+++ b/sysutils/e2fsprogs/files/patch-lib_ext2fs_ismounted.c
@@ -0,0 +1,13 @@
+--- a/lib/ext2fs/ismounted.c.orig Tue Apr 10 23:38:42 2007
++++ b/lib/ext2fs/ismounted.c Tue Apr 10 23:41:32 2007
+@@ -325,9 +325,9 @@
+ *mount_flags |= EXT2_MF_BUSY;
+ } else
+ close(fd);
++#endif
+
+ return 0;
+-#endif
+ }
+
+ /*