diff options
Diffstat (limited to 'sysutils/dmsdos/patches/patch-ab')
-rw-r--r-- | sysutils/dmsdos/patches/patch-ab | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/dmsdos/patches/patch-ab b/sysutils/dmsdos/patches/patch-ab new file mode 100644 index 00000000000..7276b4af989 --- /dev/null +++ b/sysutils/dmsdos/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/02/08 21:18:44 drochner Exp $ + +--- dblspace_methsq.c.orig 2008-02-08 20:40:57.000000000 +0100 ++++ dblspace_methsq.c +@@ -69,8 +69,8 @@ extern int debug; + /* this is problematic on architectures, */ + /* which cannot do __u16 access to odd address. */ + /* used for temporary storage of LZ intercode. */ +-#define C_ST_u16(p,v) {put_unaligned(v,((__u16*)p)++);} +-#define C_LD_u16(p,v) {v=get_unaligned(((__u16*)p)++);} ++#define C_ST_u16(p,v) {put_unaligned(v,p);p=(__u16*)p+1;} ++#define C_LD_u16(p,v) {v=get_unaligned(p);p=(__u16*)p+1;} + + /* high speed compare and move routines */ + #if defined(__GNUC__) && defined(__i386__) && defined(USE_ASM) |