summaryrefslogtreecommitdiff
path: root/libio/tst-memstream3.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 17:45:41 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 17:45:41 +0100
commitcef7166ac10cff95e8e8ab76e32376faf34800e5 (patch)
treee9dbae878483500bcb87edbc17c884489e29a529 /libio/tst-memstream3.c
parent5f982b0beb0f337ba3dfdae85462192d06b5af89 (diff)
downloadglibc-cef7166ac10cff95e8e8ab76e32376faf34800e5.tar.gz
hurd: Fix building libio/tst-memstream3.c
FWRITE is already an fcntl.h macro. * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE. (do_test_bz20181): Rename accordingly. * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
Diffstat (limited to 'libio/tst-memstream3.c')
-rw-r--r--libio/tst-memstream3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libio/tst-memstream3.c b/libio/tst-memstream3.c
index 331314f784..df0da5bac5 100644
--- a/libio/tst-memstream3.c
+++ b/libio/tst-memstream3.c
@@ -29,7 +29,7 @@
# define W(o) o
# define OPEN_MEMSTREAM open_memstream
# define PRINTF printf
-# define FWRITE fwrite
+# define _FWRITE fwrite
# define FPUTC fputc
# define STRCMP strcmp
#endif
@@ -114,14 +114,14 @@ do_test_bz20181 (void)
if (fp == NULL)
ERROR_RET1 ("%s failed\n", S(OPEN_MEMSTREAM));
- if ((ret = FWRITE (W("abc"), 1, 3, fp)) != 3)
- ERROR_RET1 ("%s failed (errno = %d)\n", S(FWRITE), errno);
+ if ((ret = _FWRITE (W("abc"), 1, 3, fp)) != 3)
+ ERROR_RET1 ("%s failed (errno = %d)\n", S(_FWRITE), errno);
if (fseek (fp, 0, SEEK_SET) != 0)
ERROR_RET1 ("fseek failed (errno = %d)\n", errno);
- if (FWRITE (W("z"), 1, 1, fp) != 1)
- ERROR_RET1 ("%s failed (errno = %d)\n", S(FWRITE), errno);
+ if (_FWRITE (W("z"), 1, 1, fp) != 1)
+ ERROR_RET1 ("%s failed (errno = %d)\n", S(_FWRITE), errno);
if (fflush (fp) != 0)
ERROR_RET1 ("fflush failed (errno = %d)\n", errno);