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.
This commit is contained in:
Adhemerval Zanella 2016-10-02 10:24:32 -03:00
parent 645f97ced4
commit edbdf872ae
2 changed files with 5 additions and 0 deletions

View File

@ -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]

View File

@ -18,6 +18,7 @@
#include <mcheck.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>