aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--target-x86.c11
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;
}
}