We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f0c2b commit 6f04f11Copy full SHA for 6f04f11
core/shared/platform/common/posix/posix_thread.c
@@ -228,7 +228,17 @@ os_sem_post(korp_sem *sem)
228
int
229
os_sem_getvalue(korp_sem *sem, int *sval)
230
{
231
+#if defined(__APPLE__)
232
+ /*
233
+ * macOS doesn't have working sem_getvalue.
234
+ * It's marked as deprecated in the system header.
235
+ * Mock it up here to avoid compile-time deprecation warnings.
236
+ */
237
+ errno = ENOSYS;
238
+ return -1;
239
+#else
240
return sem_getvalue(sem, sval);
241
+#endif
242
}
243
244
0 commit comments