Skip to contentSkip to conversation

e2fsprogs: include headers for open() in ext2fs.h

PATCH Applied Eric Sandeen 2 participants 2 messages Oct 3, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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-RH-Bugzilla: 742147

---

lib/ext2fs/ext2fs.h +3 -0
index 357bf60..7df0b0d 100644
@@ -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
Applied
#1 lore raw
Quoted 5 lines · Eric Sandeen

ext2fs.h now calls open() so it should include the headers needed for this system call as well.

Addresses-RH-Bugzilla: 742147

Applied, thanks.

- Ted