diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2016-10-02 10:24:32 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2016-10-02 10:24:32 -0300 |
commit | edbdf872aef70668badadb99df18a91c065b66d7 (patch) | |
tree | 80cf816136b36859642872eaab3d724472a1488c | |
parent | 645f97ced4d4b35deda3f8bde0927f898b163f5d (diff) | |
download | glibc-edbdf872aef70668badadb99df18a91c065b66d7.tar glibc-edbdf872aef70668badadb99df18a91c065b66d7.tar.gz glibc-edbdf872aef70668badadb99df18a91c065b66d7.tar.bz2 glibc-edbdf872aef70668badadb99df18a91c065b66d7.zip |
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.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | libio/tst-memstream3.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2016-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org> + + * libio/tst-memstream3.c: Include string.h. + 2016-09-30 Adhemerval Zanella <adhemerval.zanella@linaro.org> [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 <mcheck.h> #include <stdio.h> +#include <string.h> #include <stdarg.h> #include <errno.h> |