wlroots-hyprland/backend/drm
Simon Ser 842093bb84 Define _POSIX_C_SOURCE globally
Stop trying to maintain a per-file _POSIX_C_SOURCE. Instead,
require POSIX.1-2008 globally. A lot of core source files depend
on that already.

Some care must be taken on a few select files where we need a bit
more than POSIX. Some files need XSI extensions (_XOPEN_SOURCE) and
some files need BSD extensions (_DEFAULT_SOURCE). In both cases,
these feature test macros imply _POSIX_C_SOURCE. Make sure to not
define both these macros and _POSIX_C_SOURCE explicitly to avoid
POSIX requirement conflicts (e.g. _POSIX_C_SOURCE says POSIX.1-2001
but _XOPEN_SOURCE says POSIX.1-2008).

Additionally, there is one special case in render/vulkan/vulkan.c.
That file needs major()/minor(), and these are system-specific.
On FreeBSD, _POSIX_C_SOURCE hides system-specific symbols so we need
to make sure it's not defined for this file. On Linux, we can
explicitly include <sys/sysmacros.h> and ensure that apart from
symbols defined there the file only uses POSIX toys.
2024-02-15 15:41:12 +01:00
..
atomic.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
backend.c backend/drm: move restore logic to drm.c 2024-02-15 09:37:46 +01:00
drm.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
fb.c backend/drm: split wlr_drm_fb related functions into separate file 2023-11-30 14:44:46 +00:00
gen_pnpids.sh backend/drm: use libdisplay-info to parse EDID 2023-02-28 14:44:02 +00:00
legacy.c backend/drm: atomically reset state after VT switch 2024-02-14 19:13:23 +01:00
libliftoff.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
meson.build backend/drm: split wlr_drm_fb related functions into separate file 2023-11-30 14:44:46 +00:00
monitor.c backend/drm: drop wl_display argument 2024-01-25 15:05:36 +00:00
properties.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
renderer.c allocator: remove backend parameter in allocator_autocreate_with_drm_fd 2024-02-02 16:36:31 -05:00
util.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00