Opened 7 years ago

Closed 5 years ago

#55174 closed defect (fixed)

mednafen @0.9.48: error: use of undeclared identifier 'CLOCK_MONOTONIC'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cjones051073 (Chris Jones)
Port: mednafen

Description

mednafen @0.9.48 fails to build on OS X El Capitan 10.11 and earlier with:

Time.cpp:46:34: error: use of undeclared identifier 'CLOCK_MONOTONIC'
  if(MDFN_UNLIKELY(clock_gettime(CLOCK_MONOTONIC, &cgt_base) == -1))
                                 ^
Time.cpp:204:34: error: use of undeclared identifier 'CLOCK_MONOTONIC'
  if(MDFN_UNLIKELY(clock_gettime(CLOCK_MONOTONIC, &tp) == -1))
                                 ^

CLOCK_MONOTONIC was introduced in macOS Sierra 10.12.

Change History (3)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: mf2k removed

comment:2 Changed 5 years ago by cjones051073 (Chris Jones)

This can be fixed using the legacysupport portgroup

Last edited 5 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cjones051073 added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.