Diffusion KIO 15451d505fdb

Fix build on musl libc by exposing setgroups(2).

Authored by mpyne on Jul 27 2017, 3:33 AM.

Description

Fix build on musl libc by exposing setgroups(2).

setgroups(2) is a BSD syscall. GNU libc exposes it by default but musl
libc requires a feature flag to get that syscall defined.

The most compatible single flag is _BSD_SOURCE (which musl and GNU libc
both respect, and which FreeBSD ignores without going into their own
version of strict mode). However recent glibc requires _DEFAULT_SOURCE
instead, which no other libc seems to care about. So I defined both to
keep everyone happy...

Differential Revision: https://phabricator.kde.org/D6597

Details

Committed
mpyneJul 27 2017, 3:37 AM
Differential Revision
D6597: Add magic define to enable setgroups(2)
Parents
R241:0ac78aa3fba4: Emit a "." UDSEntry when not present, even on empty directories.
Branches
Unknown
Tags
Unknown