diff options
author | kensmith <kensmith@FreeBSD.org> | 2003-11-16 06:43:25 +0000 |
---|---|---|
committer | kensmith <kensmith@FreeBSD.org> | 2003-11-16 06:43:25 +0000 |
commit | 459a09da61644376c6f528089822e4dc6555cc82 (patch) | |
tree | f22b2748695564418a4ecb5454302c43527ab5a8 /sbin/gpt | |
parent | 74614e7f63a3fda41bd634356405cc328a9e2284 (diff) | |
download | FreeBSD-src-459a09da61644376c6f528089822e4dc6555cc82.zip FreeBSD-src-459a09da61644376c6f528089822e4dc6555cc82.tar.gz |
- Provide default values for LABELOFFSET and LABELSECTOR so
it compiles on all architectures.
Approved by: marcel
Diffstat (limited to 'sbin/gpt')
-rw-r--r-- | sbin/gpt/migrate.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/gpt/migrate.c b/sbin/gpt/migrate.c index f0affa9..f0a0d73 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 |