libc: add newlocale and freelocale dummies

Fix #3777
This commit is contained in:
Emery Hemingway 2020-06-10 20:15:44 +05:30 committed by Norman Feske
parent 6e71208db3
commit 1a620acc17

View File

@ -20,6 +20,7 @@ extern "C" {
#include <locale.h>
#include <runetype.h>
#include <xlocale_private.h>
#include <errno.h>
extern struct xlocale_component __xlocale_global_collate;
@ -64,4 +65,15 @@ char *setlocale(int, const char *)
return (char*)"C";
}
locale_t newlocale(int, const char *locale, locale_t)
{
Genode::warning("cannot set \"", locale, "\" locale, not implemented");
errno = ENOENT;
return NULL;
}
void freelocale(locale_t) { }
}