D6598: Declare _POSIX_SOURCE to ensure kill(2) is declared
Michael Pyne
noreply at phabricator.kde.org
Mon Jul 10 00:10:50 UTC 2017
mpyne created this revision.
Restricted Application added a project: Frameworks.
REVISION SUMMARY
Believe it or not, but the `kill(2)` system call is not specified to be available by default in C. It's part of BSD, POSIX, Single UNIX Spec, etc., but you do have to declare one of the various feature test macros for a strict libc (such as musl) to expose the declaration.
The fix here was simply to define `_POSIX_SOURCE` before including the various C stdlib or UNIX headers.
TEST PLAN
kinit now compiles with musl libc
kinit still compiles with glibc on Linux
REPOSITORY
R303 KInit
REVISION DETAIL
https://phabricator.kde.org/D6598
AFFECTED FILES
src/start_kdeinit/start_kdeinit.c
To: mpyne, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170710/c4866365/attachment.html>
More information about the Kde-frameworks-devel
mailing list