From: Bruno Haible Date: Wed, 14 Sep 2011 00:52:31 +0000 (+0200) Subject: tempname: Support for MSVC. X-Git-Tag: v0.1~1912 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=47cd5e6890272798588074518e1744263bdf08c8;p=gnulib.git 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 index 53089d5bab..46c6251bf3 100644 --- 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 index 745b74840a..598bf69435 100644 --- a/doc/posix-headers/fcntl.texi +++ b/doc/posix-headers/fcntl.texi @@ -26,6 +26,10 @@ non-zero value; otherwise, the gnulib replacement is 0. @samp{O_EXEC} and @samp{O_SEARCH} are not defined on some platforms. 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: diff --git a/modules/tempname b/modules/tempname index 8bb8e83859..b4708d9367 100644 --- a/modules/tempname +++ b/modules/tempname @@ -8,6 +8,7 @@ m4/tempname.m4 Depends-on: extensions +fcntl-h gettimeofday lstat stdint