--- cryptsetup-1.6.3.orig/lib/libdevmapper.c	2013-11-14 08:31:44.000000000 +0100
+++ cryptsetup-1.6.3/lib/libdevmapper.c	2014-01-08 10:15:32.000000000 +0100
@@ -29,6 +29,7 @@
 #include <linux/fs.h>
 #include <uuid/uuid.h>
 #include <sys/utsname.h>
+#include <sys/stat.h>
 
 #include "internal.h"
 
