]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix C11 and POSIX 1003.1b-1993 compliance in time.h
authorBrooks Davis <brooks@FreeBSD.org>
Tue, 18 Sep 2018 15:31:24 +0000 (15:31 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Tue, 18 Sep 2018 15:31:24 +0000 (15:31 +0000)
commitd02489d11aed2aa5410889f18f4fe8a356f4ca3b
tree5e507d5871a84036a4d0c8829eb2d253b58b33b3
parent9ed6559e3e70bef18b7e18b87b9c33200b6b2849
Fix C11 and POSIX 1003.1b-1993 compliance in time.h

Only expose timespec_get in C11, C++17, or BSD code.  Always define
struct timespect if defining timespec_get.

PR: 231425
Reviewed by: kib
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D17174
include/time.h