summaryrefslogtreecommitdiff
path: root/sci-libs/onnx/files/onnx-1.14.1-musl.patch
blob: 04748ed67e6a3e84f7ace3ccc27b9e4f22e38718 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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