summaryrefslogtreecommitdiff
path: root/kexec
diff options
context:
space:
mode:
Diffstat (limited to 'kexec')
-rw-r--r--kexec/crashdump-xen.c6
-rw-r--r--kexec/kexec.c5
-rw-r--r--kexec/kexec.h4
3 files changed, 11 insertions, 4 deletions
diff --git a/kexec/crashdump-xen.c b/kexec/crashdump-xen.c
index 4d6a25d..1fdaf05 100644
--- a/kexec/crashdump-xen.c
+++ b/kexec/crashdump-xen.c
@@ -14,7 +14,9 @@
#include "crashdump.h"
#include "kexec-syscall.h"
-#ifdef HAVE_XENCTRL_H
+#include "config.h"
+
+#ifdef HAVE_LIBXENCTRL
#include <xenctrl.h>
#endif
@@ -36,7 +38,7 @@ int xen_present(void)
unsigned long xen_architecture(struct crash_elf_info *elf_info)
{
unsigned long machine = elf_info->machine;
-#ifdef HAVE_XENCTRL_H
+#ifdef HAVE_LIBXENCTRL
int xc, rc;
xen_capabilities_info_t capabilities;
diff --git a/kexec/kexec.c b/kexec/kexec.c
index fe29dad..abc1cce 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -29,6 +29,9 @@
#include <unistd.h>
#include <fcntl.h>
#include <getopt.h>
+
+#include "config.h"
+
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif
@@ -718,7 +721,7 @@ static int my_exec(void)
static void version(void)
{
- printf(PACKAGE " " VERSION " released " RELEASE_DATE "\n");
+ printf(PACKAGE_STRING " released " PACKAGE_DATE "\n");
}
void usage(void)
diff --git a/kexec/kexec.h b/kexec/kexec.h
index 2ee48c4..2384c53 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -1,6 +1,8 @@
#ifndef KEXEC_H
#define KEXEC_H
+#include "config.h"
+
#include <sys/types.h>
#include <stdint.h>
#define USE_BSD
@@ -197,7 +199,7 @@ extern unsigned char purgatory[];
extern size_t purgatory_size;
#define BOOTLOADER "kexec"
-#define BOOTLOADER_VERSION VERSION
+#define BOOTLOADER_VERSION PACKAGE_VERSION
void arch_usage(void);
int arch_process_options(int argc, char **argv);