diff --git a/misc/koboldcpp/files/patch-otherarch_ggml__v1.c b/misc/koboldcpp/files/patch-otherarch_ggml__v1.c new file mode 100644 index 000000000000..9956d930ed13 --- /dev/null +++ b/misc/koboldcpp/files/patch-otherarch_ggml__v1.c @@ -0,0 +1,11 @@ +--- otherarch/ggml_v1.c.orig 2024-12-11 11:02:13 UTC ++++ otherarch/ggml_v1.c +@@ -151,7 +151,7 @@ typedef double ggml_v1_float; + #undef bool + #define bool _Bool + #else +-#if !defined(__riscv) ++#if !defined(__riscv) && (defined(__amd64__) || defined(__i386__)) + #include + #endif + #endif diff --git a/misc/koboldcpp/files/patch-otherarch_ggml__v2.c b/misc/koboldcpp/files/patch-otherarch_ggml__v2.c new file mode 100644 index 000000000000..fafd01935399 --- /dev/null +++ b/misc/koboldcpp/files/patch-otherarch_ggml__v2.c @@ -0,0 +1,11 @@ +--- otherarch/ggml_v2.c.orig 2024-12-11 11:02:17 UTC ++++ otherarch/ggml_v2.c +@@ -183,7 +183,7 @@ typedef double ggml_v2_float; + #if defined(_MSC_VER) || defined(__MINGW32__) + #include + #else +-#if !defined(__riscv) ++#if !defined(__riscv) && (defined(__amd64__) || defined(__i386__)) + #include + #endif + #endif