From a42c9ec106a2927f4d7af5a35547a9f212d62c9f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Mar 2017 20:43:39 +0100 Subject: add compile time features to version string --- udev-block-notify.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/udev-block-notify.c b/udev-block-notify.c index ee86208..b44a634 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -107,7 +107,11 @@ int main (int argc, char ** argv) { } if (verbose > 0) - printf("%s: %s v%s (compiled: " __DATE__ ", " __TIME__ ")\n", argv[0], PROGNAME, VERSION); + printf("%s: %s v%s" +#ifdef HAVE_SYSTEMD + " +systemd" +#endif + " (compiled: " __DATE__ ", " __TIME__ ")\n", argv[0], PROGNAME, VERSION); if (help > 0) printf("usage: %s [-h] [-t TIMEOUT] [-v] [-V]\n", argv[0]); -- cgit v1.2.3-70-g09d2