diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-28 16:23:40 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-13 17:49:55 +0200 |
commit | ec475321a4ce43f9489e06ecbb42c702ef1406ad (patch) | |
tree | e49ab72da3e824097cc1b0a9eeae97aaecbb0fda | |
parent | 2cea13f8bf05851190c750564db3f00a85380480 (diff) | |
download | sparse-ec475321a4ce43f9489e06ecbb42c702ef1406ad.tar.gz |
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 <luc.vanoostenryck@gmail.com>
-rw-r--r-- | target-x86.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; } } |