]> git.proxmox.com Git - mirror_ovs.git/commit
timeval: Check for OS-provided clock_gettime on macOS
authorRichard Oliver <richard@richard-oliver.co.uk>
Sat, 28 Oct 2017 15:38:30 +0000 (16:38 +0100)
committerBen Pfaff <blp@ovn.org>
Mon, 30 Oct 2017 16:56:27 +0000 (09:56 -0700)
commit10fd9f6e477555ca93d28094c2976b2ea0198798
tree168bb742fc48d1e0847e2dd9301bc5b2decf811a
parent45a9c31d5d915010deb6d8073fe22cf8c10f12de
timeval: Check for OS-provided clock_gettime on macOS

[Problem]
Compilation error on newer versions of macOS (Sierra onwards) due to
multiple declarations of clock_gettime.

[Solution]
Have configure check for clock_gettime and check this result in
timeval to avoid incorrectly declaring/defining clock_gettime again.

[Testing]
Source code now successfully builds on macOS.

Signed-off-by: Richard Oliver <richard@richard-oliver.co.uk>
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS.rst
configure.ac
lib/timeval.c