chiark / gitweb /
Add support for building elogind against musl libc
authorSven Eden <yamakuzure@gmx.net>
Tue, 7 Mar 2017 09:29:34 +0000 (10:29 +0100)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:23:22 +0000 (10:23 +0100)
commit6156b4779584b4bf1dc973ce988a34a1bcae1db3
tree457e7f8cf76bf8f155369f6c73b9ddc4adbadb71
parentc6999740c1a68767c5397306b8d7e14e08533111
Add support for building elogind against musl libc

* Check whether printf.h is available and define/undef HAVE_PRINTF_H
  accordingly.
* Added src/shared/parse-printf-format.[hc] by Emil Renner Berthing
  <systemd@esmil.dk> that provides parse_printf_format() if printf.h
  is unavailable
* Added src/basic/musl_missing.h by Juergen Buchmueller
  <pullmoll@t-online.de> that implements glibc functions missing in
  musl libc as macros.
* Extended src/basic/musl_missing.h and added
  src/basic/musl_missing.c providing
  - program_invocation_name
  - program_invocation_short_name and
  - elogind_set_program_name() to set the two where appropriate.
* Added calls to elogind_set_program_name() to all main() functions
  where needed.
* A few other fixes to work nicely with musl libc.
19 files changed:
Makefile.am
configure.ac
src/basic/cgroup-util.c
src/basic/log.c
src/basic/missing.h
src/basic/musl_missing.c [new file with mode: 0644]
src/basic/musl_missing.h [new file with mode: 0644]
src/basic/parse-printf-format.c [new file with mode: 0644]
src/basic/parse-printf-format.h [new file with mode: 0644]
src/basic/selinux-util.h
src/basic/util.h
src/cgroups-agent/cgroups-agent.c
src/libelogind/sd-bus/bus-introspect.c
src/libelogind/sd-login/test-login.c
src/login/inhibit.c
src/login/loginctl.c
src/login/logind.c
src/login/test-login-shared.c
src/shared/pager.c