diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-21 13:20:39 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-21 13:20:39 +0000 |
commit | 6368e273bd8f638a2d539d16c252da320799c079 (patch) | |
tree | 8e74308bad78dccbcc8427236913e0b4c9300b56 | |
parent | cb735a7a9d5134c217ca3cce0007d70da8fd5a6b (diff) |
Apply the void workaround also for typedefs.
The kernel has 'typedef VOID void' which needs this.
OK mpi@
-rw-r--r-- | usr.bin/ctfconv/parse.c | 4 |
1 files 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; |