From 2cad1d4b1be9d7bf1e64769d7fc188d88bbe1c03 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 21 Feb 2024 13:20:38 +0000 Subject: [PATCH] Apply the void workaround also for typedefs. The kernel has 'typedef VOID void' which needs this. OK mpi@ --- usr.bin/ctfconv/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ctfconv/parse.c b/usr.bin/ctfconv/parse.c index 6a2a4a4b62d..108608f92b7 100644 --- a/usr.bin/ctfconv/parse.c +++ b/usr.bin/ctfconv/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.16 2024/02/21 13:18:33 claudio Exp $ */ +/* $OpenBSD: parse.c,v 1.17 2024/02/21 13:20:38 claudio Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -833,7 +833,7 @@ parse_refers(struct dwdie *die, size_t psz, int type) if (it->it_ref == 0 && (it->it_size == sizeof(void *) || type == CTF_K_CONST || type == CTF_K_VOLATILE || - type == CTF_K_POINTER)) { + type == CTF_K_POINTER || type == CTF_K_TYPEDEF)) { /* Work around GCC/clang not emiting a type for void */ it->it_flags &= ~ITF_UNRES; it->it_ref = VOID_OFFSET; -- 2.20.1