aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/mtools/Makefile1
-rw-r--r--emulators/mtools/files/patch-g11
2 files changed, 12 insertions, 0 deletions
diff --git a/emulators/mtools/Makefile b/emulators/mtools/Makefile
index 851c5c87aff6..fa04da310a6c 100644
--- a/emulators/mtools/Makefile
+++ b/emulators/mtools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mtools
PORTVERSION= 3.9.6
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \
http://mtools.linux.lu/
diff --git a/emulators/mtools/files/patch-g b/emulators/mtools/files/patch-g
new file mode 100644
index 000000000000..26018354e5c9
--- /dev/null
+++ b/emulators/mtools/files/patch-g
@@ -0,0 +1,11 @@
+--- llong.c~ Wed Mar 17 23:43:14 1999
++++ llong.c Mon Oct 9 18:21:24 2000
+@@ -51,7 +51,7 @@
+ else
+ return -1;
+ #else
+- return lseek(fd, (off_t) where, whence);
++ return lseek(fd, (off_t) where, whence) == (off_t) -1 ? -1 : 0;
+ #endif
+ }
+