From ec475321a4ce43f9489e06ecbb42c702ef1406ad Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Sun, 28 Jun 2020 16:23:40 +0200 Subject: x86: fixes types for NetBSD & OpenBSD On NetBSD & OpenBSD, some types are not defined like on Linux. Fix this. Signed-off-by: Luc Van Oostenryck --- target-x86.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/target-x86.c b/target-x86.c index 01117bb6..62323aec 100644 --- a/target-x86.c +++ b/target-x86.c @@ -29,6 +29,8 @@ static void init_x86_common(const struct target *target) wint_ctype = &int_ctype; break; case OS_OPENBSD: + size_t_ctype = &ulong_ctype; + ssize_t_ctype = &long_ctype; wchar_ctype = &int_ctype; wint_ctype = &int_ctype; break; @@ -72,6 +74,15 @@ static void init_x86_64(const struct target *target) break; case OS_FREEBSD: break; + case OS_NETBSD: + wint_ctype = &int_ctype; + break; + case OS_OPENBSD: + int64_ctype = &llong_ctype; + uint64_ctype = &ullong_ctype; + intmax_ctype = &llong_ctype; + uintmax_ctype = &ullong_ctype; + break; } } -- cgit 1.2.3-korg