Build failed otherwise on RHEL 5. --- dm.c | 3 ++- tests/ioctl_dm.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dm.c b/dm.c index b6fb11d..a11196f 100644 --- a/dm.c +++ b/dm.c @@ -2,8 +2,9 @@ #ifdef HAVE_LINUX_DM_IOCTL_H -# include <sys/ioctl.h> +# include <inttypes.h> # include <linux/dm-ioctl.h> +# include <sys/ioctl.h> # if DM_VERSION_MAJOR == 4 diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 31f474c..94dbe93 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -1,4 +1,5 @@ #include "tests.h" +#include <inttypes.h> #include <stdio.h> #include <stddef.h> #include <string.h> -- 1.7.10.4 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel