pkgsrc/emulators/hercules/patches/patch-aq
dholland d9ddae3b8b 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.
2010-01-17 08:00:47 +00:00

15 lines
497 B
Text

$NetBSD: patch-aq,v 1.1 2010/01/17 08:00:47 dholland Exp $
Patch out gcc language extensions that are no longer supported.
--- service.c~ 2001-02-08 20:07:03.000000000 +0000
+++ service.c
@@ -1300,7 +1300,7 @@ BYTE *xstmap;
}
}
mcd_len -= obj_len;
- (BYTE*)obj_hdr += obj_len;
+ obj_hdr = (SCCB_OBJ_HDR *)((BYTE*)obj_hdr + obj_len);
}
#ifndef NO_CYGWIN_STACK_BUG