This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] tst-rec-dlopen: Fix build fail due to missing inclusion of string.h


On 06/06/2016 10:49 AM, Stefan Liebler wrote:

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?

Yes, please.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]