Fix tst-memstream3 build failure
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 2 Oct 2016 13:24:32 +0000 (10:24 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 2 Oct 2016 13:24:32 +0000 (10:24 -0300)
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
libio/tst-memstream3.c

index 4b6a174..ac58557 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 38e5f7d..b55f256 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <mcheck.h>
 #include <stdio.h>
+#include <string.h>
 #include <stdarg.h>
 #include <errno.h>