builtin_read: pickup MB_CUR_MAX from stdlib not xlocale

Fixes building on OpenBSD; work on #4184.

(cherry picked from commit 874a675e7f)
This commit is contained in:
David Adam 2017-08-28 01:40:53 +08:00
parent e67ab57ca3
commit e892c51b9c

View file

@ -4,10 +4,10 @@
#include <errno.h> #include <errno.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <wchar.h> #include <wchar.h>
#include <xlocale.h>
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>