diff options
author | wiz <wiz> | 2004-07-11 00:55:19 +0000 |
---|---|---|
committer | wiz <wiz> | 2004-07-11 00:55:19 +0000 |
commit | a795677c6260ebc8a551eaa3ccf9de11e6134e22 (patch) | |
tree | 923bc76f3bb8283ff5c11797d60fe31607842c9d /emulators/twin/patches | |
parent | de596c7d0a779599a0bd346b1c8110633362d07c (diff) | |
download | pkgsrc-a795677c6260ebc8a551eaa3ccf9de11e6134e22.tar.gz |
Make compile with gcc3 and on NetBSD-2.0.
Diffstat (limited to 'emulators/twin/patches')
-rw-r--r-- | emulators/twin/patches/patch-ak | 26 | ||||
-rw-r--r-- | emulators/twin/patches/patch-al | 14 |
2 files changed, 40 insertions, 0 deletions
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 */ + |