summaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-runserver/main.c')
-rw-r--r--src/blogc-runserver/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c
index ca402ec..8abd83a 100644
--- a/src/blogc-runserver/main.c
+++ b/src/blogc-runserver/main.c
@@ -11,6 +11,10 @@
#include "../common/utils.h"
#include "httpd.h"
+#ifndef PACKAGE_VERSION
+#define PACKAGE_VERSION "Unknown"
+#endif
+
static void
print_help(const char *default_host, const char *default_port)
@@ -71,7 +75,7 @@ main(int argc, char **argv)
print_help(default_host, default_port);
goto cleanup;
case 'v':
- printf("%s\n", PACKAGE_STRING);
+ printf("blogc " PACKAGE_VERSION "\n");
goto cleanup;
case 't':
if (argv[i][2] != '\0')