File fix-xxd-declarations.patch of Package python-gpt4all
Index: gpt4all-3.4.2/gpt4all-backend/deps/llama.cpp-mainline/ggml/src/kompute/external/bin/xxd.c =================================================================== --- gpt4all-3.4.2.orig/gpt4all-backend/deps/llama.cpp-mainline/ggml/src/kompute/external/bin/xxd.c +++ gpt4all-3.4.2/gpt4all-backend/deps/llama.cpp-mainline/ggml/src/kompute/external/bin/xxd.c @@ -156,9 +156,6 @@ char version[] = "xxd V1.10 27oct98 by # define fprintf errfprintf /* Unique address for testing. */ #endif -extern long int strtol(); -extern long int ftell(); - int huntype(fpi, fpo, fperr, pname, cols, hextype, base_off) FILE *fpi, *fpo, *fperr; @@ -235,7 +232,7 @@ huntype(fpi, fpo, fperr, pname, cols, h /* * exit_with_usage: print usage message and exit with error. - */ + */ void exit_with_usage(pname) char *pname;