Skip to content

Commit

Permalink
made gevent.core buildable under 32 bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault87 committed May 29, 2014
1 parent f6dcbba commit 349d031
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gevent/corecffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import traceback
import signal as signalmodule
import struct


__all__ = ['get_version',
Expand All @@ -14,9 +15,15 @@
'loop']


def system_bits():
return struct.calcsize('P') * 8


def st_nlink_type():
if sys.platform == "darwin":
return "short"
elif system_bits() == 32:
return "unsigned long"
return "long long"


Expand Down

0 comments on commit 349d031

Please sign in to comment.