From d5682ccbaca1e6c405494b2b84417131c7b034f5 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 1 Apr 2014 15:17:50 +0200 Subject: [PATCH] lvm-wrappers: Remove spurious #include . --- lib/device/dev-cache.c | 3 +++ lib/misc/lvm-wrappers.c | 2 ++ lib/misc/lvm-wrappers.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index 94052dcb2..b16ace403 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -19,6 +19,9 @@ #include "config.h" #include "toolcontext.h" +#ifdef UDEV_SYNC_SUPPORT +#include +#endif #include #include #include diff --git a/lib/misc/lvm-wrappers.c b/lib/misc/lvm-wrappers.c index 46590b974..7ea3ac50c 100644 --- a/lib/misc/lvm-wrappers.c +++ b/lib/misc/lvm-wrappers.c @@ -18,6 +18,8 @@ #include #ifdef UDEV_SYNC_SUPPORT +#include + struct udev *_udev; int udev_init_library_context(void) diff --git a/lib/misc/lvm-wrappers.h b/lib/misc/lvm-wrappers.h index e43f83198..b8d121707 100644 --- a/lib/misc/lvm-wrappers.h +++ b/lib/misc/lvm-wrappers.h @@ -17,7 +17,7 @@ #define _LVM_WRAPPERS_H #ifdef UDEV_SYNC_SUPPORT -#include +struct udev; struct udev *udev_get_library_context(void); #endif