shared: add compat macro for G_PID_FORMAT

System Internals / NetworkManager - Thomas Haller [redhat.com] - 26 September 2019 06:18 EDT

Having G_PID_FORMAT macro is useful, but it's only available in recent glib versions. Add a compat implementation and a test that our assumptions hold.

b6acec0fb shared: add compat macro for G_PID_FORMAT
shared/nm-glib-aux/nm-glib.h | 11 +++++++++++
shared/nm-utils/tests/test-shared-general.c | 26 ++++++++++++++++++++++++++
2 files changed, 37 insertions(+)

Upstream: cgit.freedesktop.org


  • Share