Skip to contentSkip to conversation

master - lvm-wrappers: Remove spurious #include <libudev.h>.

PATCH Petr Rockai 1 participant 1 message Apr 1, 2014

lore
Share & tools
lore
#0 lore raw
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
index 94052dc..b16ace4 100644
@@ -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
index 46590b9..7ea3ac5 100644
@@ -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
index e43f831..b8d1217 100644
@@ -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