Improve open source compatibility

This change tunes the default stack size for the outside world to 8mb
while at the same time, reducing Cosmopolitan's default stack size to
64kb. You can override the stack size using STATIC_STACK_SIZE(). Your
build scripts should point to o//ape/public/ape.lds

This change also fixes the definition of SOMAXCONN and removes AF_RDS
since it's not polyfilled and Python 3.11 complained.
This commit is contained in:
Justine Tunney 2022-09-08 02:48:17 -07:00
parent 0e2b1bfeed
commit b73e35c6fa
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
13 changed files with 50 additions and 26 deletions

View file

@ -769,7 +769,6 @@ if __name__ == 'PYOBJ.COM':
AF_NETROM = 0
AF_PACKET = 0
AF_PPPOX = 0
AF_RDS = 0
AF_ROSE = 0
AF_ROUTE = 0
AF_SECURITY = 0

View file

@ -1696,7 +1696,6 @@ class CANTest(ThreadedCANSocketTest):
class BasicRDSTest(unittest.TestCase):
def testCrucialConstants(self):
socket.AF_RDS
socket.PF_RDS
def testCreateSocket(self):