header file bug sys/types.h sys/file.h vs. _XOPEN_SOURCE standard

Dag-Erling Smørgrav des at des.no
Thu Nov 19 13:25:12 UTC 2009


"Matthias Andree" <matthias.andree at gmx.de> writes:
> I've talked to Theodore Y. Ts'o, who is the sysutils/e2fsprogs
> upstream maintainer and proposed to remove the _XOPEN_SOURCE
> definition (my idea  was that the code shouldn't be claiming standards
> compliance while it uses  non-standard headers), but he refused that
> (since it would break the  e2fsprogs build on Solaris).

He's right.  You misunderstand _XOPEN_SOURCE; it does not mean "my
program complies with X/Open blah", it means "my program requires the
facilities provided by X/Open blah".  The problem lies in FreeBSD's
headers, which don't implement namespace separation correctly.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list