mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
21 lines
649 B
Diff
21 lines
649 B
Diff
Subject: [PATCH] main.py : don't try libc.prctl on MacOS (#973)
|
|
|
|
It's not available on macOS, and so generates a warning every launch.
|
|
---
|
|
modules/main.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/modules/main.py b/modules/main.py
|
|
index 47664b32..d3f6115b 100644
|
|
--- a/modules/main.py
|
|
+++ b/modules/main.py
|
|
@@ -167,7 +167,7 @@ def initializations():
|
|
if hasattr(sys, 'frozen'):
|
|
import warnings
|
|
warnings.filterwarnings(cons.STR_IGNORE)
|
|
- if not cons.IS_WIN_OS:
|
|
+ if not (cons.IS_WIN_OS or cons.IS_MAC_OS):
|
|
try:
|
|
# change process name
|
|
import ctypes, ctypes.util
|