aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-11-11 04:46:39 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-11-11 04:46:39 +0000
commitcd5a1c3b7605e4caa4fdd1a3062041a534fd7ee0 (patch)
tree6de87c56e7a4bc64baf4999414ed159d592d4565 /lib/libdisk/create_chunk.c
parent3c428f6a5abb1224613639afbc378dfac74be6f2 (diff)
downloadsrc-cd5a1c3b7605e4caa4fdd1a3062041a534fd7ee0.tar.gz
src-cd5a1c3b7605e4caa4fdd1a3062041a534fd7ee0.zip
MBR slices are named the same on ia64 as they are on i386.
Notes
Notes: svn path=/head/; revision=106752
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 72c8e2b4dc10..7acb9b5c2419 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -124,12 +124,12 @@ Fixup_Extended_Names(struct disk *d, struct chunk *c)
int
Fixup_Names(struct disk *d)
- {
+{
struct chunk *c1, *c2;
- #ifdef __i386__
+#if defined(__i386__) || defined(__ia64__)
struct chunk *c3;
int j;
- #endif
+#endif
c1 = d->chunks;
for(c2 = c1->part; c2 ; c2 = c2->next) {
@@ -137,7 +137,7 @@ Fixup_Names(struct disk *d)
continue;
if (strcmp(c2->name, "X"))
continue;
-#ifdef __i386__
+#if defined(__i386__) || defined(__ia64__)
c2->oname = malloc(12);
if(!c2->oname) return -1;
for(j = 1; j <= NDOSPART; j++) {