tempname: Support for MSVC.
authorBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2011 00:52:31 +0000 (02:52 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 14 Sep 2011 00:52:31 +0000 (02:52 +0200)
* doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
MSVC.
* modules/tempname (Depends-on): Add fcntl-h.

ChangeLog
doc/posix-headers/fcntl.texi
modules/tempname

index 53089d5..46c6251 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
        gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
index 745b748..598bf69 100644 (file)
@@ -27,6 +27,10 @@ non-zero value; otherwise, the gnulib replacement is 0.
 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.
index 8bb8e83..b4708d9 100644 (file)
@@ -8,6 +8,7 @@ m4/tempname.m4
 
 Depends-on:
 extensions
+fcntl-h
 gettimeofday
 lstat
 stdint