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