--- a/onnx/checker.cc 2024-02-18 15:30:03.316320035 +0100 +++ b/onnx/checker.cc 2024-02-18 15:31:05.715473732 +0100 @@ -184,7 +184,7 @@ } std::string data_path = path_join(ctx.get_model_dir(), relative_path); // use stat64 to check whether the file exists -#if defined(__APPLE__) || defined(__wasm__) +#if defined(__APPLE__) || defined(__wasm__) || !defined(__GLIBC__) struct stat buffer; // APPLE does not have stat64 if (stat((data_path).c_str(), &buffer) != 0) { #else