Browse Source

ucontext is broken on 10.4

rdb 15 years ago
parent
commit
29b141a6a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      makepanda/makepanda.py

+ 3 - 0
makepanda/makepanda.py

@@ -1495,6 +1495,9 @@ def WriteConfigSettings():
         dtool_config["IS_LINUX"] = 'UNDEF'
         dtool_config["IS_LINUX"] = 'UNDEF'
         dtool_config["HAVE_VIDEO4LINUX"] = 'UNDEF'
         dtool_config["HAVE_VIDEO4LINUX"] = 'UNDEF'
         dtool_config["IS_OSX"] = '1'
         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")):
     if (sys.platform.startswith("freebsd")):
         dtool_config["IS_LINUX"] = 'UNDEF'
         dtool_config["IS_LINUX"] = 'UNDEF'