summaryrefslogtreecommitdiff
path: root/src/kmscon_module.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-03-04 15:05:17 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-03-04 15:05:17 +0100
commit9c2375b6d4e725f0757d7df83473177234425dc4 (patch)
tree2167d1f6f07586d3e5520e950a6508347e2d0c05 /src/kmscon_module.c
parent0249b2cb0b0da272a78b4967b9c9f6f02d73cad5 (diff)
shl: move githead into a source file
This moves githead.h to shl_githead.c so we can skip recompilations on GIT-HEAD changes. We only need to relink now (which we cannot skip). This speeds up build-processes considerably on slower machines. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src/kmscon_module.c')
-rw-r--r--src/kmscon_module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kmscon_module.c b/src/kmscon_module.c
index 471f5af..2bf0576 100644
--- a/src/kmscon_module.c
+++ b/src/kmscon_module.c
@@ -30,10 +30,10 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include "githead.h"
#include "kmscon_module.h"
#include "kmscon_module_interface.h"
#include "shl_dlist.h"
+#include "shl_githead.h"
#include "shl_log.h"
#include "shl_misc.h"
@@ -66,9 +66,9 @@ int kmscon_module_open(struct kmscon_module **out, const char *file)
goto err_unload;
}
- if (strcmp(module->info.githead, BUILD_GIT_HEAD)) {
+ if (strcmp(module->info.githead, shl_git_head)) {
log_error("incompatible module %s (%s != %s)",
- file, module->info.githead, BUILD_GIT_HEAD);
+ file, module->info.githead, shl_git_head);
ret = -EFAULT;
goto err_unload;
}