Skip to content

Commit c10f0da

Browse files
Put mach_error_string and mach_task_self back
1 parent e948f91 commit c10f0da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/shims/linux_stubs.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ unsigned long _dispatch_runloop_queue_probe(dispatch_queue_t dq) {
4747
void _dispatch_runloop_queue_xref_dispose() { LINUX_PORT_ERROR(); }
4848

4949
void _dispatch_runloop_queue_dispose() { LINUX_PORT_ERROR(); }
50+
char* mach_error_string(mach_msg_return_t x) {
51+
LINUX_PORT_ERROR();
52+
}
5053
void mach_vm_deallocate() { LINUX_PORT_ERROR(); }
5154

52-
mach_port_t pthread_mach_thread_np() {
55+
mach_port_t pthread_mach_thread_np(void) {
5356
return (pid_t)syscall(SYS_gettid);
5457
}
58+
mach_port_t mach_task_self(void) {
59+
return (mach_port_t)pthread_self();
60+
}
5561

5662
/*
5763
* Stubbed out static data

0 commit comments

Comments
 (0)