Define FILE_READ_ONLY_VOLUME if it is missing from winnt.h. (#521145)

2008-03-08  Tor Lillqvist  <tml@novell.com>

	* glocalfile.c: Define FILE_READ_ONLY_VOLUME if it is missing from
	winnt.h. (#521145)


svn path=/trunk/; revision=6643
This commit is contained in:
Tor Lillqvist 2008-03-08 16:06:00 +00:00 committed by Tor Lillqvist
parent 0a2a4fdc94
commit 93bd705e78
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-03-08 Tor Lillqvist <tml@novell.com>
* glocalfile.c: Define FILE_READ_ONLY_VOLUME if it is missing from
winnt.h. (#521145)
2008-03-07 Alexander Larsson <alexl@redhat.com>
* glocalfile.c:

View File

@ -89,6 +89,10 @@
#include <io.h>
#include <direct.h>
#ifndef FILE_READ_ONLY_VOLUME
#define FILE_READ_ONLY_VOLUME 0x00080000
#endif
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
#endif