Skip to content

Commit

Permalink
Add missing declaration of _CPUTIME()
Browse files Browse the repository at this point in the history
OpenXL complains:
  ISO C99 and later do not support implicit function declarations

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Mar 19, 2024
1 parent 1bf2ef4 commit dc4886f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thread/common/thrprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ omrthread_get_self_cpu_time(omrthread_t self)

#if defined(J9ZOS390)
{
extern void _CPUTIME(uint64_t *); /* defined in thrcputime.s */
uint64_t time = 0;

/* _CPUTIME returns time in TOD format (see z/Architecture Principles of Operation) */
Expand Down

0 comments on commit dc4886f

Please sign in to comment.