[Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Nov 2021 03:31:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259975

--- Comment #8 from Yuri Victorovich <yuri@freebsd.org> ---
(In reply to Warner Losh from comment #6)

FYI: Adding -D__BSD_VISIBLE=1 causes another failure:
> /usr/include/time.h:175:23: error: unknown type name 'timer_t'; did you mean 'time_t'?
> int timer_oshandle_np(timer_t timerid);
>                       ^
> /usr/include/time.h:68:18: note: 'time_t' declared here
> typedef __time_t        time_t;
>                         ^

But adding -Du_int=unsigned works. So I would use this workaround for the time
being until it is resolved outside of the port.

-- 
You are receiving this mail because:
You are the assignee for the bug.