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 /libio/tst-memstream3.c | |
parent | 645f97ced4d4b35deda3f8bde0927f898b163f5d (diff) | |
download | glibc-edbdf872aef70668badadb99df18a91c065b66d7.tar.gz glibc-edbdf872aef70668badadb99df18a91c065b66d7.tar.xz 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.
Diffstat (limited to 'libio/tst-memstream3.c')
-rw-r--r-- | libio/tst-memstream3.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |