From e66cd0dc35ecea103c66b3e0450fb4901bb3c9b8 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 8 Jul 2011 17:31:06 +0000 Subject: [PATCH] missing ifdef when new fn unused --- lib/commands/toolcontext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index b2b38dd59..d7e3e4400 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -200,6 +200,7 @@ static void _init_logging(struct cmd_context *cmd) reset_lvm_errno(1); } +#ifdef UDEV_SYNC_SUPPORT /* * Until the DM_UEVENT_GENERATED_FLAG was introduced in kernel patch * 856a6f1dbd8940e72755af145ebcd806408ecedd @@ -214,6 +215,7 @@ static int _dm_driver_has_stable_udev_support() (sscanf(vsn, "%u.%u.%u", &maj, &min, &patchlevel) == 3) && (maj == 4 ? min >= 18 : maj > 4); } +#endif static int _process_config(struct cmd_context *cmd) { -- 2.43.5