Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2021 18:55:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given
Message-ID:  <bug-259975-99@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 259975
           Summary: sys/file.h fails when -D_POSIX_C_SOURCE=3D200809L is
                    given
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: standards@FreeBSD.org
          Reporter: yuri@freebsd.org

This line:
> $ cat x.c
> #include <sys/file.h>

fails when compiled with -D_POSIX_C_SOURCE=3D200809L:
> $ cc -c x.c -D_POSIX_C_SOURCE=3D200809L
> In file included from x.c:2:
> /usr/include/sys/file.h:233:2: error: unknown type name 'u_int'
>         u_int   xf_flag;        /* flags (see fcntl.h) */
>         ^
> 1 error generated.


The vtk-9,1,0 fails for this reason.

I am not sure but shouldn't base headers compile with any choices of C stan=
dard
level?

--=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-99>