Skip to content

POSIX/GNU compliance macros fixes for uClibc support

Simon Ser requested to merge github/fork/pcercuei/uclibc into master

Created by: pcercuei

Hi,

These two patches allow me to build wlroots with uClibc.

  • _XOPEN_SOURCE is required for strdup to become available. Since it defines _POSIX_C_SOURCE (see man 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

Merge request reports