From edbdf872aef70668badadb99df18a91c065b66d7 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Sun, 2 Oct 2016 10:24:32 -0300 Subject: [PATCH] Fix tst-memstream3 build failure Add string.h to avoid tst-memstream3 build failure in some environments: tst-memstream3.c:32:17: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration] # define STRCMP strcmp ^ tst-memstream3.c:96:7: note: in expansion of macro 'STRCMP' if (STRCMP (buf, W("b")) != 0) Checked on x86_64. * libio/tst-memstream3.c: Include string.h. --- ChangeLog | 4 ++++ libio/tst-memstream3.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4b6a1740cc..ac585578e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-10-02 Adhemerval Zanella + + * libio/tst-memstream3.c: Include string.h. + 2016-09-30 Adhemerval Zanella [BZ #18241] diff --git a/libio/tst-memstream3.c b/libio/tst-memstream3.c index 38e5f7d150..b55f256e11 100644 --- a/libio/tst-memstream3.c +++ b/libio/tst-memstream3.c @@ -18,6 +18,7 @@ #include #include +#include #include #include