From b0c72ff87dcd7614c2ac6169f88e9283ed03213e Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Sun, 9 Dec 2007 18:59:58 +0100 Subject: [PATCH] fdisk: fix building for AVR32 and CRIS The following simple patch fixes fdisk compilation for the AVR32 and CRIS architectures. Signed-off-by: Imre Kaloz Signed-off-by: Karel Zak --- fdisk/fdiskbsdlabel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fdisk/fdiskbsdlabel.h b/fdisk/fdiskbsdlabel.h index 1838dca8..461c2acc 100644 --- a/fdisk/fdiskbsdlabel.h +++ b/fdisk/fdiskbsdlabel.h @@ -46,7 +46,9 @@ #define BSD_LINUX_BOOTDIR "/usr/ucb/mdec" -#if defined (i386) || defined (__sparc__) || defined (__arm__) || defined (__mips__) || defined (__s390__) || defined (__sh__) || defined(__x86_64__) +#if defined (i386) || defined (__sparc__) || defined (__arm__) || \ + defined (__mips__) || defined (__s390__) || defined (__sh__) || \ + defined(__x86_64__) || defined (__avr32__) || defined(__cris__) #define BSD_LABELSECTOR 1 #define BSD_LABELOFFSET 0 #elif defined (__alpha__) || defined (__powerpc__) || defined (__ia64__) || defined (__hppa__) -- 2.39.5