From 1e43bebf69cdea864cd902727e651febc9183268 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 29 Apr 2008 08:17:36 +0000 Subject: [PATCH] * src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED is not defined because of ancient libparted (Soren Hansen). --- ChangeLog | 6 ++++++ src/parthelper.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0f3938f263..ec4cd95dbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Apr 29 09:15:00 BST 2008 Richard W.M. Jones + + * src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED + is not defined because of ancient libparted + (Soren Hansen). + Mon Apr 28 17:24:22 EST 2008 Daniel P. Berrange * src/memory.h, src/memory.c: Added safer APIs for dealing diff --git a/src/parthelper.c b/src/parthelper.c index d593c49fc0..a0fe241639 100644 --- a/src/parthelper.c +++ b/src/parthelper.c @@ -67,8 +67,10 @@ int main(int argc, char **argv) content = "free"; else if (part->type & PED_PARTITION_METADATA) content = "metadata"; +#ifdef PED_PARTITION_PROTECTED else if (part->type & PED_PARTITION_PROTECTED) content = "protected"; +#endif else content = "data"; } else if (part->type == PED_PARTITION_EXTENDED) { @@ -80,8 +82,10 @@ int main(int argc, char **argv) content = "free"; else if (part->type & PED_PARTITION_METADATA) content = "metadata"; +#ifdef PED_PARTITION_PROTECTED else if (part->type & PED_PARTITION_PROTECTED) content = "protected"; +#endif else content = "data"; } -- GitLab