[Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given
Date: Sun, 21 Nov 2021 18:55:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259975 Bug ID: 259975 Summary: sys/file.h fails when -D_POSIX_C_SOURCE=200809L 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=200809L: > $ cc -c x.c -D_POSIX_C_SOURCE=200809L > 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 standard level? -- You are receiving this mail because: You are the assignee for the bug.