# HG changeset patch # User Bruno Haible # Date 1315961551 -7200 # Node ID e3c67dcee18f83b87f76f8b2e4f5e089edf61cab # Parent e819b881a9e264231ecb05e01ce821e46c85cc56 tempname: Support for MSVC. * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on MSVC. * modules/tempname (Depends-on): Add fcntl-h. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-13 Bruno Haible + + 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 sys_time: Support for MSVC. diff --git a/doc/posix-headers/fcntl.texi b/doc/posix-headers/fcntl.texi --- 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. diff --git a/modules/tempname b/modules/tempname --- a/modules/tempname +++ b/modules/tempname @@ -8,6 +8,7 @@ Depends-on: extensions +fcntl-h gettimeofday lstat stdint