ldlinux: Fix compiler warning in colors.c
authorMatt Fleming <matt.fleming@linux.intel.com>
Wed, 16 Mar 2011 14:05:16 +0000 (14:05 +0000)
committerMatt Fleming <matt.fleming@linux.intel.com>
Wed, 16 Mar 2011 14:06:39 +0000 (14:06 +0000)
Include core-elf.h to get the definition of enum kernel_type to fix
the following warning,

In file included from colors.c:17:0:
../modules/menu.h:206:40: warning: ‘enum kernel_type’ declared inside parameter list
../modules/menu.h:206:40: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
com32/elflink/ldlinux/colors.c

index 68732bd..c1ef390 100644 (file)
@@ -14,6 +14,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <colortbl.h>
+#include <core-elf.h>
 #include "menu.h"
 
 /*