This revision was automatically updated to reflect the committed changes.
Closed by commit R241:15451d505fdb: Fix build on musl libc by exposing
setgroups(2). (authored by mpyne).
REPOSITORY
R241 KIO
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D6597?vs=16422&id=17270
REVISION DETA
mpyne added a comment.
With the help of the KDE sysadmins, I've tested this to build on FreeBSD.
BSD-specific defines remain available on FreeBSD unless you start to use
`_POSIX_C_SOURCE`, `_ANSI_SOURCE`, or `_XOPEN_SOURCE`. So `_BSD_SOURCE` and
`_DEFAULT_SOURCE` appear to be safe for Free
mpyne created this revision.
Restricted Application added a project: Frameworks.
REVISION SUMMARY
The KIO KPAC DHCP helper uses `setgroups(2)`. But this is apparently not
specified in POSIX due to being a "privileged call", so it is only available as
an extension, typically needing `_BSD_SOUR