libc: Add nanosleep() for mesa
This commit is contained in:
parent
a4f646d694
commit
a0a66c39c3
|
@ -70,6 +70,8 @@ size_t strftime(char *__restrict dest, size_t max_size,
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int nanosleep(const struct timespec *, struct timespec *);
|
||||||
|
|
||||||
int clock_getres(clockid_t, struct timespec *);
|
int clock_getres(clockid_t, struct timespec *);
|
||||||
int clock_gettime(clockid_t, struct timespec *);
|
int clock_gettime(clockid_t, struct timespec *);
|
||||||
int clock_settime(clockid_t, const struct timespec *);
|
int clock_settime(clockid_t, const struct timespec *);
|
||||||
|
|
|
@ -45,6 +45,11 @@ size_t strftime(char *__restrict dest, size_t max_size,
|
||||||
|
|
||||||
// POSIX extensions.
|
// POSIX extensions.
|
||||||
|
|
||||||
|
int nanosleep(const struct timespec *, struct timespec *) {
|
||||||
|
__ensure(!"Not implemented");
|
||||||
|
__builtin_unreachable();
|
||||||
|
}
|
||||||
|
|
||||||
int clock_getres(clockid_t, struct timespec *) {
|
int clock_getres(clockid_t, struct timespec *) {
|
||||||
__ensure(!"Not implemented");
|
__ensure(!"Not implemented");
|
||||||
__builtin_unreachable();
|
__builtin_unreachable();
|
||||||
|
|
Loading…
Reference in a new issue