Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2018 13:14:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234205] /usr/include/sys/file.h uses the u_int typedef which causes C compilation to sometimes fail
Message-ID:  <bug-234205-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234205

            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@FreeBSD.org
          Reporter: deepbluemistake@gmail.com

If you compile a program, and give -D_XOPEN_SOURCE=3D700 to the compiler, a=
nd 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.

--=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-234205-227>