D6598: Declare _POSIX_SOURCE to ensure kill(2) is declared

2017-07-26 Thread Michael Pyne
This revision was automatically updated to reflect the committed changes.
Closed by commit R303:c42f18a7fc1a: Use proper feature flag to include kill(2). 
(authored by mpyne).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D6598?vs=16423=17269#toc

REPOSITORY
  R303 KInit

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D6598?vs=16423=17269

REVISION DETAIL
  https://phabricator.kde.org/D6598

AFFECTED FILES
  src/start_kdeinit/start_kdeinit.c

To: mpyne, #frameworks


D6598: Declare _POSIX_SOURCE to ensure kill(2) is declared

2017-07-09 Thread Michael Pyne
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