]> git.ipfire.org Git - thirdparty/zstd.git/commit
FreeBSD_11 specific fix
authorYann Collet <cyan@fb.com>
Wed, 10 Apr 2019 22:22:18 +0000 (15:22 -0700)
committerYann Collet <cyan@fb.com>
Wed, 10 Apr 2019 22:22:18 +0000 (15:22 -0700)
commit885476fb5b30e5bf3adac6bb35bbd07ebe15d1e2
treeec71e83803eaaef4e277484defe312054ff563a9
parent2fa4f2e246b0e4e3a07570a31e89ddd9410bec6a
FreeBSD_11 specific fix

C11 mandates the definition of timespec_get() and TIME_UTC.
However, FreeBSD11 announce C11 compliance, but does not provifr timespec_get(),
breaking link stage for benchfn.
Since it does not provide TIME_UTC either, which is also required by C11,
test this macro: this will automatically rule out FreeBSD 11 for this code path
(it will use the backup C90 path instead, based on clock_t).

The issue seeems fixed in FreeBSD 12.
programs/timefn.c
programs/timefn.h