[Bug 234205] /usr/include/sys/file.h uses the u_int typedef which causes C compilation to sometimes fail
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 20 13:14:45 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234205
Bug ID: 234205
Summary: /usr/include/sys/file.h uses the u_int typedef which
causes C compilation to sometimes fail
Product: Base System
Version: 12.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: misc
Assignee: bugs at FreeBSD.org
Reporter: deepbluemistake at gmail.com
If you compile a program, and give -D_XOPEN_SOURCE=700 to the compiler, and the
program has #include <sys/file.h> the compiler gives an error like this:
/usr/include/sys/file.h:226:2: error: unknown type name 'u_int'
u_int xf_flag; /* flags (see fcntl.h) */
and then bails out.
Why is the u_int typedef used instead of 'unsigned int' itself? It's
unnecessary other than to save a couple keystrokes while typing.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list