aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-27 01:40:33 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-27 01:40:33 +0000
commitaf507979298d67f1b339a65e448e03bda4bf0044 (patch)
tree4364d1044e2010d8334863e58b7dea144bd14541
parent31c7d52c945cb31515f8cb4aabb07051409fdf2a (diff)
downloadglibc-af507979298d67f1b339a65e448e03bda4bf0044.zip
glibc-af507979298d67f1b339a65e448e03bda4bf0044.tar.gz
glibc-af507979298d67f1b339a65e448e03bda4bf0044.tar.bz2
Update.
2000-01-26 David McCann <david.mccann@alcatel.at> * libio/libioP.h [!_G_HAVE_MMAP]: Define ALLOC_WBUF.
-rw-r--r--ChangeLog4
-rw-r--r--libio/libioP.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 83ba3dd..f98285f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-01-26 David McCann <david.mccann@alcatel.at>
+
+ * libio/libioP.h [!_G_HAVE_MMAP]: Define ALLOC_WBUF.
+
2000-01-25 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/configure.in: Set CPPFLAGS for kernel
diff --git a/libio/libioP.h b/libio/libioP.h
index e3356f4..d23436a 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -640,6 +640,12 @@ extern void (*_IO_cleanup_registration_needed) __PMT ((void));
if ((_B) == NULL) \
return (_R); \
} while (0)
+# define ALLOC_WBUF(_B, _S, _R) \
+ do { \
+ (_B) = (wchar_t *)malloc(_S); \
+ if ((_B) == NULL) \
+ return (_R); \
+ } while (0)
#endif /* _G_HAVE_MMAP */