aports/community/shadow/fix-undefined-reference.patch
2023-09-04 10:05:53 +00:00

20 lines
295 B
Diff

--- a/lib/alloc.h
+++ b/lib/alloc.h
@@ -84,14 +84,14 @@
}
-inline void *
+static inline void *
mallocarray(size_t nmemb, size_t size)
{
return reallocarray(NULL, nmemb, size);
}
-inline void *
+static inline void *
reallocarrayf(void *p, size_t nmemb, size_t size)
{
void *q;