Commit 349d031f authored by Park Joon-Kyu's avatar Park Joon-Kyu

made gevent.core buildable under 32 bit systems

parent f6dcbbac
...@@ -3,6 +3,7 @@ import sys ...@@ -3,6 +3,7 @@ import sys
import os import os
import traceback import traceback
import signal as signalmodule import signal as signalmodule
import struct
__all__ = ['get_version', __all__ = ['get_version',
...@@ -14,9 +15,15 @@ __all__ = ['get_version', ...@@ -14,9 +15,15 @@ __all__ = ['get_version',
'loop'] 'loop']
def system_bits():
return struct.calcsize('P') * 8
def st_nlink_type(): def st_nlink_type():
if sys.platform == "darwin": if sys.platform == "darwin":
return "short" return "short"
elif system_bits() == 32:
return "unsigned long"
return "long long" return "long long"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment