changeset 15614:e3c67dcee18f

tempname: Support for MSVC. * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on MSVC. * modules/tempname (Depends-on): Add fcntl-h.
author Bruno Haible <bruno@clisp.org>
date Wed, 14 Sep 2011 02:52:31 +0200
parents e819b881a9e2
children 79e8ec9a79db
files ChangeLog doc/posix-headers/fcntl.texi modules/tempname
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-13  Bruno Haible  <bruno@clisp.org>
+
+	tempname: Support for MSVC.
+	* doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
+	MSVC.
+	* modules/tempname (Depends-on): Add fcntl-h.
+
 2011-09-13  Bruno Haible  <bruno@clisp.org>
 
 	sys_time: Support for MSVC.
--- a/doc/posix-headers/fcntl.texi
+++ b/doc/posix-headers/fcntl.texi
@@ -27,6 +27,10 @@
 Gnulib defines these macros to @samp{O_RDONLY}, which is typically 0.
 
 @item
+@samp{O_ACCMODE} is not defined on some platforms:
+MSVC 9.
+
+@item
 The @samp{O_ACCMODE} mask mistakenly omits @samp{O_SEARCH} and
 @samp{O_EXEC} on some platforms:
 Cygwin.
--- a/modules/tempname
+++ b/modules/tempname
@@ -8,6 +8,7 @@
 
 Depends-on:
 extensions
+fcntl-h
 gettimeofday
 lstat
 stdint