]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix C11 and POSIX 1003.1b-1993 compliance in time.h
authorbrooks <brooks@FreeBSD.org>
Tue, 18 Sep 2018 15:31:24 +0000 (15:31 +0000)
committerbrooks <brooks@FreeBSD.org>
Tue, 18 Sep 2018 15:31:24 +0000 (15:31 +0000)
commit39f6c1e67a5e9f7fe10f84ef8c785447b9c1239b
tree5e507d5871a84036a4d0c8829eb2d253b58b33b3
parent1ca86e517773b3764e4634e97c1bdce5d2261768
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