Do not pollute userspace with <sys/proc.h>, instead declare struct thread when _KERNEL is defined. Include <sys/time.h> instead of <sys/timespec.h>. This causes intentional namespace pollution that mimics Linux. g/musl libcs include <time.h> in their <sys/timerfd.h>, exposing clock gettime, settime functions and CLOCK_ macro constants. Ports like Chromium expect this namespace pollution and fail without it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Include <sys/time.h> instead of <sys/timespec.h>. This causes intentional namespace pollution that mimics Linux.
This should be explained by a comment IMO.
sys/sys/timerfd.h | ||
---|---|---|
34 |
sys/sys/timerfd.h | ||
---|---|---|
34 |
|
Comment Actions
Commit message (same as SUMMARY here?) should also reference bug 273373. I'm waiting for MFC to stable/14 before removing workarounds in 6 affected ports.
$ rg --sort-files -F -- '-D__BSD_VISIBLE -D__XSI_VISIBLE' [...] x11/mako/Makefile 43:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE x11/swayimg/Makefile 84:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE x11/sxmo-wayout/Makefile 36:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE x11/wmenu/Makefile 35:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE x11/xdg-desktop-portal-hyprland/Makefile 56:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE x11/xdg-desktop-portal-wlr/Makefile 53:CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE