master - lvm-wrappers: Remove spurious #include <libudev.h>.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d5682ccbaca1e6c405494b2b84417131c7b034f5 Commit: d5682ccbaca1e6c405494b2b84417131c7b034f5 Parent: 490226fc475232e0b158cf9fdc8670a663da4efe Author: Petr Rockai <[email protected]> AuthorDate: Tue Apr 1 15:17:50 2014 +0200 Committer: Petr Rockai <[email protected]> CommitterDate: Tue Apr 1 15:26:26 2014 +0200
lvm-wrappers: Remove spurious #include <libudev.h>.
--- lib/device/dev-cache.c | 3 +++ lib/misc/lvm-wrappers.c | 2 ++ lib/misc/lvm-wrappers.h | 2 +- 3 files changed, 6 insertions(+), 1 deletions(-)
lib/device/dev-cache.c +3 -0
@@ -19,6 +19,9 @@#include "config.h" #include "toolcontext.h" +#ifdef UDEV_SYNC_SUPPORT +#include <libudev.h> +#endif #include <unistd.h> #include <sys/param.h> #include <dirent.h>
lib/misc/lvm-wrappers.c +2 -0
@@ -18,6 +18,8 @@#include <fcntl.h> #ifdef UDEV_SYNC_SUPPORT +#include <libudev.h> +struct udev *_udev;int udev_init_library_context (void )
lib/misc/lvm-wrappers.h +1 -1
@@ -17,7 +17,7 @@#define _LVM_WRAPPERS_H#ifdef UDEV_SYNC_SUPPORT -#include <libudev.h> +struct udev ;struct udev *udev_get_library_context (void );#endif