[PATCH] tst-rec-dlopen: Fix build fail due to missing inclusion of string.h
Stefan Liebler
stli@linux.vnet.ibm.com
Mon Jun 6 08:49:00 GMT 2016
Hi,
on S390, I get an 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 <string.h>" for strlen.
Okay to commit?
Bye
Stefan
ChangeLog:
* dlfcn/tst-rec-dlopen.c: Include string.h.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20160606_tst-rec-dlopen.patch
Type: text/x-patch
Size: 308 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160606/d8211798/attachment.bin>
More information about the Libc-alpha
mailing list