]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: clock: improve check for pthread_getcpuclockid()
authorIlia Shipitsin <chipitsine@gmail.com>
Sun, 5 May 2024 11:09:22 +0000 (13:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 May 2024 06:25:17 +0000 (08:25 +0200)
commita7cf2454ddbd3844068ae7d85e67f969a97122b3
tree1be074f0258a86bdb1347443b1640e7796a8d665
parent22ff8aa97c481d0e38fe594134b7fee7fccb215b
BUILD: clock: improve check for pthread_getcpuclockid()

if _POSIX_THREAD_CPUTIME is greater than 0, pthread_getcpuclockid()
is implemented.

This should fix the build on Solaris 11.

Reference: https://docs.oracle.com/cd/E88353_01/html/E37842/unistd-3head.html
ML: https://www.mail-archive.com/haproxy@formilux.org/msg44915.html
src/clock.c