about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-10-02 10:24:32 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-10-02 10:24:32 -0300
commitedbdf872aef70668badadb99df18a91c065b66d7 (patch)
tree80cf816136b36859642872eaab3d724472a1488c /libio
parent645f97ced4d4b35deda3f8bde0927f898b163f5d (diff)
downloadglibc-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')
-rw-r--r--libio/tst-memstream3.c1
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>