summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/kexec-elf-x86.c
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@suse.de>2008-11-05 10:41:49 +0100
committerSimon Horman <horms@verge.net.au>2008-11-10 14:44:14 +1100
commit186a545ec38c028cadb948310dac4faba4589fd0 (patch)
tree0b26626d467a75dd35acf0f413528d77d19fde49 /kexec/arch/i386/kexec-elf-x86.c
parentd182ce5434c7b66569118db0ccfe63e5d8a03687 (diff)
Add include for offsetof macro
kexec/arch/i386/kexec-elf-x86.c and kexec/arch/x86_64/kexec-elf-x86_64.c both use the macro offsetof() which according to the man page requires #include <stddef.h>. The include is not present at the moment and this patch adds it. This is necessary for compatibility with i.e. uClibc. Signed-off-by: Stefan Assmann <sassmann@suse.de> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/kexec-elf-x86.c')
-rw-r--r--kexec/arch/i386/kexec-elf-x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/arch/i386/kexec-elf-x86.c b/kexec/arch/i386/kexec-elf-x86.c
index 5a763bd..afa0eb5 100644
--- a/kexec/arch/i386/kexec-elf-x86.c
+++ b/kexec/arch/i386/kexec-elf-x86.c
@@ -18,6 +18,7 @@
*/
#define _GNU_SOURCE
+#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>