emulators/nono: fix build with LLVM 11

This commit is contained in:
naddy 2021-03-10 18:34:18 +00:00
parent 3883406b0b
commit 7932cce225
2 changed files with 39 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2020/12/07 14:25:13 gonzalo Exp $
# $OpenBSD: Makefile,v 1.13 2021/03/10 18:34:18 naddy Exp $
# Big endian support is not complete as of 0.1.0
NOT_FOR_ARCHS= ${BE_ARCHS}
@ -7,6 +7,7 @@ BROKEN-i386= requires __m128i and similar types; may work if SSE is disabled
COMMENT= LUNA-I emulator
DISTNAME= nono-0.1.5
REVISION= 0
CATEGORIES= emulators
MAINTAINER= Gonzalo L. R. <gonzalo@openbsd.org>

View File

@ -0,0 +1,37 @@
$OpenBSD: patch-debugger_debugger_private_h,v 1.1 2021/03/10 18:34:18 naddy Exp $
Index: debugger/debugger_private.h
--- debugger/debugger_private.h.orig
+++ debugger/debugger_private.h
@@ -123,11 +123,11 @@ class Debugger final
Quit, // デバッガとの接続を終了する
};
using cmdfunc_t = void (Debugger::*)();
- typedef struct {
+ struct cmddef_t {
const char *name;
cmdfunc_t func;
CommandAction action;
- } cmddef_t;
+ };
// ブレークポイント種別
enum BreakpointType {
@@ -139,7 +139,7 @@ class Debugger final
};
// ブレークポイント
- typedef struct {
+ struct breakpoint_t {
BreakpointType type {}; // 種別
// 種別ごとのパラメータ
union {
@@ -162,7 +162,7 @@ class Debugger final
// n(>0) なら n 回の成立をスキップし、(n+1) 回目でブレークの意。
int32 skip {}; // スキップ回数 (ユーザ指定値)
int32 skipremain {}; // 残りスキップ回数 (0 で成立)
- } breakpoint_t;
+ };
static const int MAX_BREAKPOINTS = 8;
public: