Skip to content

Commit 7750dc2

Browse files
KatashiMonosatodas
authored andcommitted
Put mach_error_string and mach_task_self back
Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent e97f772 commit 7750dc2

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
@@ -40,11 +40,17 @@ unsigned long _dispatch_runloop_queue_probe(dispatch_queue_t dq) {
4040
void _dispatch_runloop_queue_xref_dispose() { LINUX_PORT_ERROR(); }
4141

4242
void _dispatch_runloop_queue_dispose() { LINUX_PORT_ERROR(); }
43+
char* mach_error_string(mach_msg_return_t x) {
44+
LINUX_PORT_ERROR();
45+
}
4346
void mach_vm_deallocate() { LINUX_PORT_ERROR(); }
4447

45-
mach_port_t pthread_mach_thread_np() {
48+
mach_port_t pthread_mach_thread_np(void) {
4649
return (pid_t)syscall(SYS_gettid);
4750
}
51+
mach_port_t mach_task_self(void) {
52+
return (mach_port_t)pthread_self();
53+
}
4854

4955
/*
5056
* Stubbed out static data

0 commit comments

Comments
 (0)