From: Eli Zaretskii Date: Fri, 14 Oct 2016 07:08:25 +0000 (+0300) Subject: Include strings.h where available X-Git-Tag: users/ARM/embedded-gdb-7.12-branch-2016q4~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e7fe25aebc4fe4a2c1af15447b44f50c3c97b2f;p=thirdparty%2Fbinutils-gdb.git Include strings.h where available gdb/ChangeLog 2016-10-14 Eli Zaretskii * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if available, to get prototypes of 'strcasecmp' and 'strncasecmp'. (cherry picked from commit 8ffc1bb12a22e548835c9291871ad0eb68b7f6f0) --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 47a2b7d6d19..5c53747d4a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-10-14 Eli Zaretskii + + * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if + available, to get prototypes of 'strcasecmp' and 'strncasecmp'. + 2016-10-12 Yao Qi PR tdep/20682 diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 2c941170453..6719ea675af 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -49,6 +49,9 @@ #include #include +#ifdef HAVE_STRINGS_H +#include /* for strcasecmp and strncasecmp */ +#endif #include #include