summaryrefslogtreecommitdiff
path: root/sci-libs/onnx/files/onnx-1.14.1-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/onnx/files/onnx-1.14.1-musl.patch')
-rw-r--r--sci-libs/onnx/files/onnx-1.14.1-musl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sci-libs/onnx/files/onnx-1.14.1-musl.patch b/sci-libs/onnx/files/onnx-1.14.1-musl.patch
new file mode 100644
index 000000000000..04748ed67e6a
--- /dev/null
+++ b/sci-libs/onnx/files/onnx-1.14.1-musl.patch
@@ -0,0 +1,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