mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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 <string.h>" for strlen. ChangeLog: * dlfcn/tst-rec-dlopen.c: Include string.h.
This commit is contained in:
parent
b9f5c3acc0
commit
b5537473c2
@ -1,3 +1,7 @@
|
||||
2016-06-06 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||
|
||||
* dlfcn/tst-rec-dlopen.c: Include string.h.
|
||||
|
||||
2016-06-05 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
* manual/install.texi: Remove mention of --without-tls
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <stdalign.h>
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#define DSO "moddummy1.so"
|
||||
#define FUNC "dummy1"
|
||||
|
Loading…
Reference in New Issue
Block a user