diff options
Diffstat (limited to 'src/basic/build.c')
-rw-r--r-- | src/basic/build.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/basic/build.c b/src/basic/build.c index 4a15f901d0..360ff1357b 100644 --- a/src/basic/build.c +++ b/src/basic/build.c @@ -1,6 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include <stdio.h> + #include "build.h" +#include "macro.h" const char* const systemd_features = @@ -226,3 +229,9 @@ const char* const systemd_features = " default-hierarchy=" DEFAULT_HIERARCHY_NAME ; + +int version(void) { + printf("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n%s\n", + systemd_features); + return 0; +} |