From b5537473c2ccb6874985e3d2bc0a0c7e204213bd Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Mon, 6 Jun 2016 11:03:04 +0200 Subject: tst-rec-dlopen: Fix build fail due to missing inclusion of string.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit on S390, I get a compile error for dlfcn/tst-rec-dlopen.c: tst-rec-dlopen.c: In function ‘malloc’: tst-rec-dlopen.c:101:4: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration] (void) write (STDOUT_FILENO, message, strlen (message)); ^ tst-rec-dlopen.c:101:42: error: incompatible implicit declaration of built-in function ‘strlen’ [-Werror] (void) write (STDOUT_FILENO, message, strlen (message)); ^ tst-rec-dlopen.c:112:42: error: incompatible implicit declaration of built-in function ‘strlen’ [-Werror] (void) write (STDOUT_FILENO, message, strlen (message)); ^ This patch adds the missing "#include " for strlen. ChangeLog: * dlfcn/tst-rec-dlopen.c: Include string.h. --- dlfcn/tst-rec-dlopen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dlfcn/tst-rec-dlopen.c') diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c index 07e0cc467a..0269851b63 100644 --- a/dlfcn/tst-rec-dlopen.c +++ b/dlfcn/tst-rec-dlopen.c @@ -23,6 +23,7 @@ #include #include #include +#include #define DSO "moddummy1.so" #define FUNC "dummy1" -- cgit v1.2.3-70-g09d2