Skip to content

clock_gettime missing on older macos #15

Closed
@rufty

Description

@rufty

Building on MacOS 10.11.6 fails with:
/Volumes/Builds/libff/libff/common/profiling.cpp:45:12: fatal error: no member named 'clock_gettime' in the global namespace
if ( ::clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts) )

This seems to be the issue: https://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x

Build used macports clang++ version 5.0.1 and without procps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions