diff options
author | dholland <dholland> | 2010-01-17 08:00:47 +0000 |
---|---|---|
committer | dholland <dholland> | 2010-01-17 08:00:47 +0000 |
commit | f951f56275208b4f4c2530538f31892c429272b2 (patch) | |
tree | 3bc9edb497e8304f4871e518d0969e7dd7ed1bf8 /emulators/hercules/patches/patch-at | |
parent | be045658e9c7c1d64c68ce91ba6dda8bd0c1a72a (diff) | |
download | pkgsrc-f951f56275208b4f4c2530538f31892c429272b2.tar.gz |
Patch out no-longer-supported gcc language extensions, mostly lvalue
casts and lvalue ternary operators. Also make static/non-static decls
consistent. Fixes broken build. While here, add DESTDIR support.
Diffstat (limited to 'emulators/hercules/patches/patch-at')
-rw-r--r-- | emulators/hercules/patches/patch-at | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/hercules/patches/patch-at b/emulators/hercules/patches/patch-at new file mode 100644 index 00000000000..398900f10b6 --- /dev/null +++ b/emulators/hercules/patches/patch-at @@ -0,0 +1,15 @@ +$NetBSD: patch-at,v 1.1 2010/01/17 08:00:47 dholland Exp $ + +Patch out mismatched decls gcc no longer accepts. + +--- tapemap.c~ 2001-01-28 18:05:41.000000000 +0000 ++++ tapemap.c +@@ -35,7 +35,7 @@ static BYTE buf[65500]; + /*-------------------------------------------------------------------*/ + /* ASCII to EBCDIC translate tables */ + /*-------------------------------------------------------------------*/ +-static unsigned char ++unsigned char + ebcdic_to_ascii[] = { + "\x00\x01\x02\x03\xA6\x09\xA7\x7F\xA9\xB0\xB1\x0B\x0C\x0D\x0E\x0F" + "\x10\x11\x12\x13\xB2\xB4\x08\xB7\x18\x19\x1A\xB8\xBA\x1D\xBB\x1F" |