X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=ext4_utils.h;h=a5c1ae0167da17c04cad34c63ee3bd8de7be6ec8;hp=2ad05a0310125a228aad458c208f9c4ad0032778;hb=bb9cf91795e1254584bf6a38a070646597724089;hpb=67cbf164c72c2916641e2d4900f7cf497375b4c3;ds=sidebyside diff --git a/ext4_utils.h b/ext4_utils.h index 2ad05a0..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;