bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351) · aktech/cpython@c90e960 · GitHub
Skip to content

Commit c90e960

Browse files
haneyvstinner
authored andcommitted
bpo-30183: Fixes HP-UX cc compilation error in pytime.c (python#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 python#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
1 parent dcc8ce4 commit c90e960

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Python/pytime.c

Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)