From 6ee90da420fac0d1a0d30ab1004f6b7a453d3da2 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Fri, 28 Jun 2019 18:20:29 -0400 Subject: [PATCH] Add back some stubs for the non-threads build. Commit migrated from https://github.com/mono/mono/commit/3970c6112a03acdbd4cc01a3a8bbf973fecf1f8e --- src/mono/mono/mini/mini-wasm.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/mono/mono/mini/mini-wasm.c b/src/mono/mono/mini/mini-wasm.c index 50d71ba..949ec2f 100644 --- a/src/mono/mono/mini/mini-wasm.c +++ b/src/mono/mono/mini/mini-wasm.c @@ -638,6 +638,14 @@ G_BEGIN_DECLS #include #include +#ifndef __EMSCRIPTEN_PTHREADS__ +int pthread_getschedparam (pthread_t thread, int *policy, struct sched_param *param) +{ + g_error ("pthread_getschedparam"); + return 0; +} +#endif + int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) { @@ -696,6 +704,15 @@ inotify_add_watch (int fd, const char *pathname, uint32_t mask) return 0; } +#ifndef __EMSCRIPTEN_PTHREADS__ +int +sem_timedwait (sem_t *sem, const struct timespec *abs_timeout) +{ + g_error ("sem_timedwait"); + return 0; +} +#endif + ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) -- 2.7.4