Fix missing includes on recent systems.
authorMilan Broz <gmazyland@gmail.com>
Fri, 15 Jan 2010 11:11:37 +0000 (11:11 +0000)
committerMilan Broz <gmazyland@gmail.com>
Fri, 15 Jan 2010 11:11:37 +0000 (11:11 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@178 36d66b0a-2a48-0410-832c-cd162a569da5

lib/libdevmapper.c
luks/keymanage.c

index f4b0bdd..16d1535 100644 (file)
@@ -1,4 +1,7 @@
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/ioctl.h>
+#include <unistd.h>
 #include <dirent.h>
 #include <errno.h>
 #include <libdevmapper.h>
index 14d276b..7f67651 100644 (file)
@@ -17,6 +17,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 #include <netinet/in.h>