summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nodejs/unit-http/unit.h2
-rw-r--r--src/nxt_main.h5
-rw-r--r--src/nxt_unit.h2
3 files changed, 3 insertions, 6 deletions
diff --git a/src/nodejs/unit-http/unit.h b/src/nodejs/unit-http/unit.h
index 8baeb967..db85e85c 100644
--- a/src/nodejs/unit-http/unit.h
+++ b/src/nodejs/unit-http/unit.h
@@ -15,7 +15,7 @@ extern "C" {
#include "version.h"
#include <nxt_unit.h>
-#if NXT_UNIT_VERNUM != NXT_NODE_VERNUM
+#if NXT_VERNUM != NXT_NODE_VERNUM
#error "libunit version mismatch."
#endif
diff --git a/src/nxt_main.h b/src/nxt_main.h
index dc821e07..23c55002 100644
--- a/src/nxt_main.h
+++ b/src/nxt_main.h
@@ -9,10 +9,7 @@
#include <nxt_auto_config.h>
-
-
-#define NXT_VERSION "1.8"
-#define NXT_VERNUM 10800
+#include <nxt_version.h>
#define NXT_SERVER "Unit/" NXT_VERSION
diff --git a/src/nxt_unit.h b/src/nxt_unit.h
index a3fcc541..532de20d 100644
--- a/src/nxt_unit.h
+++ b/src/nxt_unit.h
@@ -11,7 +11,7 @@
#include <sys/types.h>
#include <string.h>
-#include "nxt_unit_version.h"
+#include "nxt_version.h"
#include "nxt_unit_typedefs.h"