libc: add newlocale and freelocale dummies
This commit is contained in:
parent
e203c4b57b
commit
c91449cf4e
|
@ -85,3 +85,30 @@ index 150640ddf3..e511897600 100644
|
||||||
DUMMY(int , -1, getpriority, (int, int))
|
DUMMY(int , -1, getpriority, (int, int))
|
||||||
DUMMY(int , -1, getrusage, (int, rusage *))
|
DUMMY(int , -1, getrusage, (int, rusage *))
|
||||||
DUMMY_SILENT(uid_t , 0, getuid, (void))
|
DUMMY_SILENT(uid_t , 0, getuid, (void))
|
||||||
|
commit c3d87d0a79f9e30aebdf26d3b684c6b1b2214c51
|
||||||
|
Author: Emery Hemingway <ehmry@posteo.net>
|
||||||
|
Date: Wed Jun 10 20:15:44 2020 +0530
|
||||||
|
|
||||||
|
libc: add newlocale and freelocale dummies
|
||||||
|
|
||||||
|
Fix #3777
|
||||||
|
|
||||||
|
diff --git a/repos/libports/src/lib/libc/nolocale.cc b/repos/libports/src/lib/libc/nolocale.cc
|
||||||
|
index 9d43c35acb..ec37b81336 100644
|
||||||
|
--- a/repos/libports/src/lib/libc/nolocale.cc
|
||||||
|
+++ b/repos/libports/src/lib/libc/nolocale.cc
|
||||||
|
@@ -64,4 +64,14 @@ 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");
|
||||||
|
+ return NULL;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+void freelocale(locale_t) { }
|
||||||
|
+
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue