Ver Fonte

ucontext is broken on 10.4

rdb há 15 anos atrás
pai
commit
29b141a6a9
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      makepanda/makepanda.py

+ 3 - 0
makepanda/makepanda.py

@@ -1495,6 +1495,9 @@ def WriteConfigSettings():
         dtool_config["IS_LINUX"] = 'UNDEF'
         dtool_config["HAVE_VIDEO4LINUX"] = 'UNDEF'
         dtool_config["IS_OSX"] = '1'
+        # 10.4 had a broken ucontext implementation
+        if int(platform.mac_ver()[0][3]) <= 4:
+            dtool_config["PHAVE_UCONTEXT_H"] = 'UNDEF'
 
     if (sys.platform.startswith("freebsd")):
         dtool_config["IS_LINUX"] = 'UNDEF'