aboutsummaryrefslogtreecommitdiff
path: root/sim/common/gentmap.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2015-02-13 05:32:30 +0800
committerChen Gang <gang.chen.5i5j@gmail.com>2015-02-14 00:11:34 +0800
commitdc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac (patch)
tree0b124a1dc57397c34e042c8f817fc28203d032ef /sim/common/gentmap.c
parentb0619670ab9822e5c116c273ba484909e608a943 (diff)
downloadgdb-dc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac.zip
gdb-dc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac.tar.gz
gdb-dc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac.tar.bz2
sim/common/gentmap.c: Include "string.h".
The related warnings: gcc ../../../binutils-gdb/sim/mcore/../common/gentmap.c -o gentmap -g -O -I. -I../../../binutils-gdb/sim/mcore -I../common -I../../../binutils-gdb/sim/mcore/../common -I../../include -I../../../binutils-gdb/sim/mcore/../../include -I../../bfd -I../../../binutils-gdb/sim/mcore/../../bfd -I../../opcodes -I../../../binutils-gdb/sim/mcore/../../opcodes ../../../binutils-gdb/sim/mcore/../common/gentmap.c: In function ‘main’: ../../../binutils-gdb/sim/mcore/../common/gentmap.c:119:7: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (strcmp (argv[1], "-h") == 0) ^ 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com> * gentmap.c: Include "string.h".
Diffstat (limited to 'sim/common/gentmap.c')
-rw-r--r--sim/common/gentmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c
index 7efc6d3..1769c53 100644
--- a/sim/common/gentmap.c
+++ b/sim/common/gentmap.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
struct tdefs {
char *symbol;