POSIX/GNU compliance macros fixes for uClibc support
Created by: pcercuei
Hi,
These two patches allow me to build wlroots with uClibc.
-
_XOPEN_SOURCE
is required forstrdup
to become available. Since it defines_POSIX_C_SOURCE
(seeman feature_test_macros(7)
), remove all inline defines of these two macros, and have meson provide only the former. -
F_DUPFD_CLOEXEC
seems to be a GNU-only thing, and will be provided by <fcntl.h> only when _GNU_SOURCE is defined on uClibc.
Edited by Simon Ser