fe612c38db38ef9721d7155ba01574d22c618410
[openwrt/openwrt.git] / toolchain / gdb / patches / 100-fix-elf-support-check.patch
1 --- a/gdb/configure
2 +++ b/gdb/configure
3 @@ -16818,6 +16818,7 @@ else
4 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5 /* end confdefs.h. */
6 #include <stdlib.h>
7 +#include <string.h>
8 #include "bfd.h"
9 #include "elf-bfd.h"
10
11 --- a/gdb/acinclude.m4
12 +++ b/gdb/acinclude.m4
13 @@ -362,6 +362,7 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [
14 AC_CACHE_CHECK([$1], [$2],
15 [AC_TRY_LINK(
16 [#include <stdlib.h>
17 + #include <string.h>
18 #include "bfd.h"
19 #include "$4"
20 ],