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: http://erislabs.net/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 53089d5ba..46c6251bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also diff --git a/doc/posix-headers/fcntl.texi b/doc/posix-headers/fcntl.texi index 745b74840..598bf6943 100644 --- a/doc/posix-headers/fcntl.texi +++ b/doc/posix-headers/fcntl.texi @@ -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. diff --git a/modules/tempname b/modules/tempname index 8bb8e8385..b4708d936 100644 --- a/modules/tempname +++ b/modules/tempname @@ -8,6 +8,7 @@ m4/tempname.m4 Depends-on: extensions +fcntl-h gettimeofday lstat stdint