From c50305e7f0ace48dbf96ee696885bd2b097ba1ac Mon Sep 17 00:00:00 2001 From: bthery Date: Mon, 20 Feb 2017 14:36:41 +0100 Subject: [PATCH] Add support for IBM AIX In IBM AIX, CLOCK_MONOTONIC has value 10 and clockid_t type is long long. --- monotonic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monotonic.py b/monotonic.py index d843d82..1c1b46b 100644 --- a/monotonic.py +++ b/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."""