SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72150 0 58 Python

bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351)

* bpo-30183: Fixes HP-UX cc compilation error in pytime.c

HP-UX does not support the CLOCK_MONOTONIC identifier, and will fail to
compile:

    "Python/pytime.c", line 723: error #2020: identifier
    "CLOCK_MONOTONIC" is undefined
          const clockid_t clk_id = CLOCK_MONOTONIC;

Add a new section for __hpux that calls 'gethrtime()' instead of
'clock_gettime()'.

* bpo-30183: Removes unnecessary return
H
haney committed
c90e96015085784df86632b26059b19c80cbfc97
Parent: dcc8ce4
Committed by Victor Stinner <victor.stinner@gmail.com> on 6/21/2017, 6:18:21 PM