aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-31 05:55:52 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-31 05:55:52 +0100
commit625cfd87d9282c9698a02cd6acd870ee0baee407 (patch)
treeba4542677bf6789d7c76afd08d9921d226ced5aa
parentb5233f8556d330ae866b903f64a5f14535e4b171 (diff)
downloadbusybox-w32-625cfd87d9282c9698a02cd6acd870ee0baee407.tar.gz
busybox-w32-625cfd87d9282c9698a02cd6acd870ee0baee407.tar.bz2
busybox-w32-625cfd87d9282c9698a02cd6acd870ee0baee407.zip
fdisk_osf: simplify ifdef (incidentally, adds support for Microblaze)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/fdisk_osf.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index 79be0cd0f..65e6bd7c4 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -43,19 +43,15 @@
43 43
44#define BSD_LINUX_BOOTDIR "/usr/ucb/mdec" 44#define BSD_LINUX_BOOTDIR "/usr/ucb/mdec"
45 45
46#if defined(i386) || defined(__sparc__) || defined(__arm__) \ 46#if defined(__alpha__) \
47 || defined(__m68k__) || defined(__mips__) || defined(__s390__) \ 47 || defined(__powerpc__) \
48 || defined(__s390__) || defined(__s390x__) \ 48 || defined(__ia64__) \
49 || defined(__sh__) || defined(__x86_64__) || defined(__avr32__) \
50 || defined(__nds32__)
51# define BSD_LABELSECTOR 1
52# define BSD_LABELOFFSET 0
53#elif defined(__alpha__) || defined(__powerpc__) || defined(__ia64__) \
54 || defined(__hppa__) 49 || defined(__hppa__)
55# define BSD_LABELSECTOR 0 50# define BSD_LABELSECTOR 0
56# define BSD_LABELOFFSET 64 51# define BSD_LABELOFFSET 64
57#else 52#else
58# error unknown architecture 53# define BSD_LABELSECTOR 1
54# define BSD_LABELOFFSET 0
59#endif 55#endif
60 56
61#define BSD_BBSIZE 8192 /* size of boot area, with label */ 57#define BSD_BBSIZE 8192 /* size of boot area, with label */