]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys/file.h: Allow inclusion when compiling for a strict namespace
authorWarner Losh <imp@FreeBSD.org>
Wed, 24 Nov 2021 09:25:47 +0000 (02:25 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 24 Nov 2021 09:38:09 +0000 (02:38 -0700)
commita2b53e53a3f38dd89b64500a2d2a1727baffe4f9
tree814c70cafd5a7b6aa7e6fda3b184da683561249a
parentb3fab418301eaadb3b9ac24f9ff295a84521dc54
sys/file.h: Allow inclusion when compiling for a strict namespace

Although not part of the standard, this file is sometimes included with
-D_POSIX_C_SOURCE=<value> or -D_XOPEN_SOURCE=<value>. Limit those
sturctures that use types hidden by __BSD_VISIBLE to when they are
visible.

PR: 259975, 234205
Sponsored by: Netflix
sys/sys/file.h