diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-10-14 10:08:25 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-10-14 10:08:25 +0300 |
commit | 8ffc1bb12a22e548835c9291871ad0eb68b7f6f0 (patch) | |
tree | 46fe129885c2100cbabb0a60de9daa238765e92b /gdb | |
parent | 64a0223474d767f07aecc1a8ce56d9fde12dfbfa (diff) | |
download | gdb-8ffc1bb12a22e548835c9291871ad0eb68b7f6f0.zip gdb-8ffc1bb12a22e548835c9291871ad0eb68b7f6f0.tar.gz gdb-8ffc1bb12a22e548835c9291871ad0eb68b7f6f0.tar.bz2 |
Include strings.h where available
gdb/ChangeLog
2016-10-14 Eli Zaretskii <eliz@gnu.org>
* common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/common/common-defs.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57fdc64..045bdc8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-10-14 Eli Zaretskii <eliz@gnu.org> + + * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if + available, to get prototypes of 'strcasecmp' and 'strncasecmp'. + 2016-10-13 Pedro Alves <palves@redhat.com> * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead. diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 0d8d100..b82906f 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -49,6 +49,9 @@ #include <stdint.h> #include <string.h> +#ifdef HAVE_STRINGS_H +#include <strings.h> /* for strcasecmp and strncasecmp */ +#endif #include <errno.h> #include <alloca.h> |