Date: Sun, 21 Nov 2021 20:54:28 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given Message-ID: <bug-259975-29464-0iKPNyH66A@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-259975-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-259975-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259975 --- Comment #6 from Warner Losh <imp@FreeBSD.org> --- The other workaround for this would be to add -D__BSD_VISIBLE=3D1 to the compliation. The hdf sources already do something similar for _GNU_SOURCE to bring in ex= tra functionality that's only in Linux, but we have no similar _BSD_SOURCE or _FREEBSD_SOURCE (NetBSD and OpenBSD both have _NETBSD_SORUCE or _OPENBSD_SO= URCE respectively). My inclination is to define _FREEBSD_SOURCE and have hdf use= it (and maybe __BSD_VISIBLE=3D1 as a transitionary workaround), but I'm open f= or the least painful way to be both compliant with POSIX_C_SOURCE and the desire f= or enabling extensions. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259975-29464-0iKPNyH66A>