summaryrefslogtreecommitdiff
path: root/lib/ext2fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2011-10-03 13:16:48 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-03 13:16:52 -0400
commite43bb12f402c7de72113a24701fcd17024e1f25c (patch)
tree012d1c4a1c1f365d59cd4403696a4f49dc4b54dd /lib/ext2fs
parent82fc189b6354ca54d4f498160997385e2b2a4146 (diff)
downloade2fsprogs-e43bb12f402c7de72113a24701fcd17024e1f25c.tar.gz
e2fsprogs: include headers for open() in ext2fs.h
ext2fs.h now calls open() so it should include the headers needed for this system call as well. Addresses-Red-Hat-Bugzilla: #742147 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r--lib/ext2fs/ext2fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
index 357bf60f..7df0b0d2 100644
--- a/lib/ext2fs/ext2fs.h
+++ b/lib/ext2fs/ext2fs.h
@@ -57,6 +57,9 @@ extern "C" {
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
#ifndef __USE_XOPEN2K
/* If the "#define _XOPEN_SOURCE 600" didn't succeed in declaring