Skip to contentSkip to conversation

master - cleanup: clean gcc6 minor/major types warnings

PATCH Zdenek Kabelac 1 participant 1 message Aug 29, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=92d5a8441007f578e000b492cecf67d6b8a87405
Commit:        92d5a8441007f578e000b492cecf67d6b8a87405
Parent:        81970d22d8a841c1ea69fde5c9108fc4df3759bd
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Aug 18 14:41:46 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Aug 29 20:51:16 2016 +0200

cleanup: clean gcc6 minor/major types warnings

Put sys/sysmacros.h in front of sys/types.h header file as requested by gcc6.

---
 lib/filters/filter-sysfs.c |    1 +
 libdm/libdm-stats.c        |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
lib/filters/filter-sysfs.c +1 -0
index 3115f86..6f566bc 100644
@@ -17,6 +17,7 @@
 
 #ifdef __linux__
 
+#include <sys/sysmacros.h>
 #include <dirent.h>
 
 static int _locate_sysfs_blocks(const char *sysfs_dir, char *path, size_t len,
libdm/libdm-stats.c +1 -0
index 1c2e19b..6932b28 100644
@@ -19,6 +19,7 @@
 
 #include "math.h" /* log10() */
 
+#include <sys/sysmacros.h>
 #include <sys/ioctl.h>
 #include <sys/vfs.h> /* fstatfs */