summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 16:14:35 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-06 12:51:26 +0200
commit33cd703f559200f326bd4a9613edd90f1b1c8e9d (patch)
tree7d25cac78765f4b307c6f4632199b93ed908d913
parent7112f5b1108f321da32ee54591767bd15900ad85 (diff)
Fix implicit declaration caused missing #include <string.h>
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -flto -MT user_io.o -MD -MP -MF .deps/user_io.Tpo -c -o user_io.o user_io.c user_io.c: In function ‘err’: user_io.c:38:25: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--user_call/user_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/user_call/user_io.c b/user_call/user_io.c
index d8f95a1..c486e46 100644
--- a/user_call/user_io.c
+++ b/user_call/user_io.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>