e2fsprogs: include headers for open() in ext2fs.h
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
Signed-off-by Eric Sandeen <[email protected]>
---
lib/ext2fs/ext2fs.h +3 -0
@@ -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
Ted Ts'o
AppliedQuoted 5 lines · Eric Sandeen
ext2fs.hnow callsopen()so it should include the headers needed for this system call as well.Addresses-RH-Bugzilla: 742147
Signed-off-by Eric Sandeen <[email protected]>
Applied, thanks.
- Ted