From 5e61108795a80ccadc49c9aed27d68933f072152 Mon Sep 17 00:00:00 2001 From: knotteye Date: Thu, 15 Apr 2021 16:28:04 -0500 Subject: [PATCH] Handle MacOS's libc --- monkeypatch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkeypatch.py b/monkeypatch.py index 1a0b74a..a088f3b 100644 --- a/monkeypatch.py +++ b/monkeypatch.py @@ -29,6 +29,8 @@ if libc_path == 'libc.so.6': sleep = posixsleep elif libc_path == 'kernel32': sleep = ntsleep +elif libc_path == "libSystem.dylib": + sleep = posixsleep else: print("Couldn't figure out how to use native sleep calls with "+str(libc_path)+", event loop performance may suffer.") sleep = time.sleep \ No newline at end of file