From: Stefan Liebler Date: Mon, 6 Jun 2016 09:03:04 +0000 (+0200) Subject: tst-rec-dlopen: Fix build fail due to missing inclusion of string.h X-Git-Tag: upstream/2.24~161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5537473c2ccb6874985e3d2bc0a0c7e204213bd;p=platform%2Fupstream%2Fglibc.git tst-rec-dlopen: Fix build fail due to missing inclusion of string.h 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. --- diff --git a/ChangeLog b/ChangeLog index 84738f5..3cec387 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-06-06 Stefan Liebler + + * dlfcn/tst-rec-dlopen.c: Include string.h. + 2016-06-05 Paul Pluzhnikov * manual/install.texi: Remove mention of --without-tls diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c index 07e0cc4..0269851 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"