Index: include/llvm/Analysis/TargetLibraryInfo.h =================================================================== --- include/llvm/Analysis/TargetLibraryInfo.h +++ include/llvm/Analysis/TargetLibraryInfo.h @@ -19,6 +19,28 @@ #include "llvm/IR/PassManager.h" #include "llvm/Pass.h" +#if defined(__linux__) and !defined(__GLIBC__) and !defined(__ANDROID__) +#undef fopen64 +#undef fseeko64 +#undef fstat64 +#undef fstatvfs64 +#undef ftello64 +#undef lstat64 +#undef stat64 +#undef tmpfile64 +#undef F_GETLK64 +#undef F_SETLK64 +#undef F_SETLKW64 +#undef flock64 +#undef open64 +#undef openat64 +#undef creat64 +#undef lockf64 +#undef posix_fadvise64 +#undef posix_fallocate64 +#undef off64_t +#endif + namespace llvm { template class ArrayRef;