repairs for NetBSD

This commit is contained in:
Matthew Flatt 2021-03-04 15:19:54 -07:00
parent d03456b55e
commit 07c7ff51ff
3 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@
a6nt ta6nt
a6le ta6le
a6ob ta6ob
a6nb ta6nb
a6fb ta6fb
a6s2 ta6s2)
'x86_64]
@ -58,6 +59,7 @@
i3nt ti3nt
i3le ti3le
i3ob ti3ob
i3nb ti3nb
i3fb ti3fb
i3s2 ti3s2
i3qnx)

View File

@ -4227,6 +4227,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#include <locale.h>
int main() {
locale_t l = newlocale(LC_COLLATE_MASK | LC_CTYPE_MASK, "C", NULL);
locale_t old_l = uselocale(l);
uselocale(old_l);
freelocale(l);
return 0;
}

View File

@ -182,6 +182,8 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <locale.h>
int main() {
locale_t l = newlocale(LC_COLLATE_MASK | LC_CTYPE_MASK, "C", NULL);
locale_t old_l = uselocale(l);
uselocale(old_l);
freelocale(l);
return 0;
}])],