summaryrefslogtreecommitdiff
path: root/sbin/gpt
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2003-11-16 06:43:25 +0000
committerKen Smith <kensmith@FreeBSD.org>2003-11-16 06:43:25 +0000
commit3834ba792074639fabd114cfe63f7dbc42b4d943 (patch)
treef22b2748695564418a4ecb5454302c43527ab5a8 /sbin/gpt
parente45db9b837dc530b86149374e2baeaa775061107 (diff)
downloadsrc-test2-3834ba792074639fabd114cfe63f7dbc42b4d943.tar.gz
src-test2-3834ba792074639fabd114cfe63f7dbc42b4d943.zip
Notes
Diffstat (limited to 'sbin/gpt')
-rw-r--r--sbin/gpt/migrate.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c
index f0affa90761f..f0a0d7384714 100644
--- a/sbin/gpt/migrate.c
+++ b/sbin/gpt/migrate.c
@@ -41,6 +41,17 @@
#include "map.h"
#include "gpt.h"
+/*
+ * Allow compilation on platforms that do not have a BSD label.
+ * The values are valid for amd64, i386 and ia64 disklabels.
+ */
+#ifndef LABELOFFSET
+#define LABELOFFSET 0
+#endif
+#ifndef LABELSECTOR
+#define LABELSECTOR 1
+#endif
+
int keep, slice;
static void