read: Support for MSVC 9.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 02:07:12 +0000 (04:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 02:07:12 +0000 (04:07 +0200)
commit7bad64eadf0456e71707c843b2c83a44951683f2
tree1fc1490edd6ec3836f2eda512859345a7513b650
parent895d4925b7eb3475050328ef820e8ddfee95e1de
read: Support for MSVC 9.

* lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
is not 1.
* lib/read.c (read_nothrow): New function.
(rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
read_nothrow.
* m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
invalid parameter handler.
(gl_PREREQ_READ): New macro.
* modules/read (Depends-on): Add msvc-inval.
(configure.ac): Invoke gl_PREREQ_READ.
* doc/posix-functions/read.texi: Mention the problem on MSVC.
ChangeLog
doc/posix-functions/read.texi
lib/read.c
lib/unistd.in.h
m4/read.m4
modules/read