Debian Codegraph @

monero/contrib/depends/patches/unbound/disable-glibc-reallocarray.patch

raw
1 diff --git a/configure.ac b/configure.ac
2 index 5c7da197..e2b25288 100644
3 --- a/configure.ac
4 +++ b/configure.ac
5 @@ -1702,6 +1702,9 @@ AC_LINK_IFELSE([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT
6 #ifndef _OPENBSD_SOURCE
7 #define _OPENBSD_SOURCE 1
8 #endif
9 +#ifdef __linux__
10 +# error reallocarray() is currently disabled on Linux to support glibc < 2.26
11 +#endif
12 #include <stdlib.h>
13 int main(void) {
14 void* p = reallocarray(NULL, 10, 100);