diff --git a/bin/pull-monotonic b/bin/pull-monotonic index 0796415..83a8991 100755 --- a/bin/pull-monotonic +++ b/bin/pull-monotonic @@ -1,7 +1,7 @@ #!/bin/bash set -eux cd "$( dirname "${BASH_SOURCE[0]}" )/.." -version=${1-"8447153178046158fe10d927cd358e0088587bca"} +version=${1-"5c0322dc559bf961f7e111d97cd3ed9ab5c1a73b"} path="./eventlet/support/monotonic.py" url="https://raw.githubusercontent.com/atdt/monotonic/${version}/monotonic.py" rm -f ${path} diff --git a/eventlet/support/monotonic.py b/eventlet/support/monotonic.py index d843d82..1c1b46b 100644 --- a/eventlet/support/monotonic.py +++ b/eventlet/support/monotonic.py @@ -150,6 +150,8 @@ except AttributeError: CLOCK_MONOTONIC = 4 elif 'bsd' in sys.platform: CLOCK_MONOTONIC = 3 + elif sys.platform.startswith('aix'): + CLOCK_MONOTONIC = ctypes.c_longlong(10) def monotonic(): """Monotonic clock, cannot go backward."""