summaryrefslogtreecommitdiff
path: root/emulators/twin
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-07-11 00:55:19 +0000
committerwiz <wiz@pkgsrc.org>2004-07-11 00:55:19 +0000
commit9d0a5a8bfa13301e612ab12b0ef06e983fd20224 (patch)
tree923bc76f3bb8283ff5c11797d60fe31607842c9d /emulators/twin
parent89cd91965666a63f56ee5e1de8f117eecd7f319b (diff)
downloadpkgsrc-9d0a5a8bfa13301e612ab12b0ef06e983fd20224.tar.gz
Make compile with gcc3 and on NetBSD-2.0.
Diffstat (limited to 'emulators/twin')
-rw-r--r--emulators/twin/distinfo4
-rw-r--r--emulators/twin/patches/patch-ak26
-rw-r--r--emulators/twin/patches/patch-al14
3 files changed, 43 insertions, 1 deletions
diff --git a/emulators/twin/distinfo b/emulators/twin/distinfo
index 0b55d1e3074..dffe68ad27d 100644
--- a/emulators/twin/distinfo
+++ b/emulators/twin/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2003/03/08 03:15:50 jmc Exp $
+$NetBSD: distinfo,v 1.3 2004/07/11 00:55:19 wiz Exp $
SHA1 (twin-src-3.1.14.tar.gz) = b1652f07adcc2c98948a4458480b2d8436cc893f
Size (twin-src-3.1.14.tar.gz) = 2216218 bytes
@@ -12,3 +12,5 @@ SHA1 (patch-ag) = 2f6f51e9f837920c7d0db11686071a6de2d66887
SHA1 (patch-ah) = 82deae0df4dd9f695b6a402fe9be8f4b9a9bc4f4
SHA1 (patch-ai) = 30c18f5770b839fbae7143ce2e0b435eb90cfc76
SHA1 (patch-aj) = 904103343dec345480b7566f9fe980fb027faade
+SHA1 (patch-ak) = daa28ea5a1a2110a57948ea5ca0a59d060fca615
+SHA1 (patch-al) = 9c27e11439360db805d6d6165a3af0f75064dcec
diff --git a/emulators/twin/patches/patch-ak b/emulators/twin/patches/patch-ak
new file mode 100644
index 00000000000..8bdf1faf775
--- /dev/null
+++ b/emulators/twin/patches/patch-ak
@@ -0,0 +1,26 @@
+$NetBSD: patch-ak,v 1.1 2004/07/11 00:55:19 wiz Exp $
+
+--- msdos/mfs_fileio.c.orig 2001-01-14 04:19:38.000000000 +0100
++++ msdos/mfs_fileio.c
+@@ -213,8 +213,8 @@ mfs_delete(DWORD p1, DWORD p2, DWORD p3,
+ (strcmp(filename, xdos.fileio[slot].filename) == 0) ) {
+ /* Get the handle */
+ if ((handle = gethandle()) < 0) {
+- ERRSTR((LF_ERROR,"mfs_delete cannot get handle for file %s %d
+- %d\n", filename, errno, slot));
++ ERRSTR((LF_ERROR,"mfs_delete cannot get handle for file %s %d"
++" %d\n", filename, errno, slot));
+ return MAKELONG(NO_HANDLES & 0xffff,0xffff);
+ }
+ xdos.fileptr[handle] = &xdos.fileio[slot];
+@@ -232,8 +232,8 @@ mfs_delete(DWORD p1, DWORD p2, DWORD p3,
+ return unlink(filename);
+ }
+ }
+- else ERRSTR((LF_ERROR,"mfs_delete : invalid handle %d for file
+-%s\n",handle, filename));
++ else ERRSTR((LF_ERROR,"mfs_delete : invalid handle %d for file "
++"%s\n",handle, filename));
+ }
+ }
+ /* At this point, either the file was fclosed by us, or it was
diff --git a/emulators/twin/patches/patch-al b/emulators/twin/patches/patch-al
new file mode 100644
index 00000000000..41f4ed9239b
--- /dev/null
+++ b/emulators/twin/patches/patch-al
@@ -0,0 +1,14 @@
+$NetBSD: patch-al,v 1.1 2004/07/11 00:55:19 wiz Exp $
+
+--- include/winuser.h.orig 2001-01-01 01:51:19.000000000 +0100
++++ include/winuser.h
+@@ -3723,7 +3723,9 @@ CharPrev(LPCTSTR, LPCTSTR);
+ int WideCharToMultiByte(UINT ,DWORD ,LPCWSTR ,int ,LPSTR ,int ,LPCSTR ,LPBOOL );
+ int MultiByteToWideChar(UINT ,DWORD ,LPCSTR ,int ,LPWSTR ,int );
+
++#ifndef __NetBSD__
+ size_t WINAPI wcslen(LPCWSTR);
++#endif
+
+ #endif /* NOAPIPROTO */
+