aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-19 20:09:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-19 20:09:52 +0000
commit286db002f8c85fee0d65d05c845fb1878fcd11a6 (patch)
tree8c6fe938832eaeddb9dbe778a45886c892f88be6 /main.c
parentfont: glyph_for_wchar(): ensure glyph->valid == false, in *all* error cases (diff)
meson: fix version generation from git
run_command() was only run at configure time, meaning the generated version (that was passed on to the sources via -DFUZZEL_VERSION) became stale. Fix by implementing a shell script that generates a header file, and wrap this in a custom target that is run every time (but the generated file is only updated when the version changes)
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index e81d2395..dfb1982d 100644
--- a/main.c
+++ b/main.c
@@ -39,6 +39,7 @@
#include "slave.h"
#include "terminal.h"
#include "tokenize.h"
+#include "version.h"
#include "vt.h"
#define min(x, y) ((x) < (y) ? (x) : (y))