X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=ext4_utils.h;h=a5c1ae0167da17c04cad34c63ee3bd8de7be6ec8;hp=97eebc48f68063cff3c6a68e4157f32691228bdf;hb=bb9cf91795e1254584bf6a38a070646597724089;hpb=8597212da10cdf192cf719059d63d59d5df41ed8 diff --git a/ext4_utils.h b/ext4_utils.h index 97eebc4..a5c1ae0 100644 --- a/ext4_utils.h +++ b/ext4_utils.h @@ -27,9 +27,12 @@ extern "C" { #define _FILE_OFFSET_BITS 64 #define _LARGEFILE64_SOURCE 1 #include -#include -#include +#ifdef __GLIBC__ +#include +#endif + +#include #include #include #include @@ -38,13 +41,6 @@ extern "C" { #include #include -#if defined(__APPLE__) && defined(__MACH__) -#define lseek64 lseek -#define ftruncate64 ftruncate -#define mmap64 mmap -#define off64_t off_t -#endif - #include "ext4_sb.h" extern int force; @@ -156,7 +152,7 @@ typedef int (*fs_config_func_t)(const char *path, int dir, unsigned *uid, unsign struct selabel_handle; int make_ext4fs_internal(int fd, const char *directory, - const char *mountpoint, fs_config_func_t fs_config_func, int gzip, + fs_config_func_t fs_config_func, int gzip, int sparse, int crc, int wipe, int verbose, time_t fixed_time, FILE* block_list_file);