Define FILE_READ_ONLY_VOLUME if it is missing from winnt.h. (#521145)
authorTor Lillqvist <tml@novell.com>
Sat, 8 Mar 2008 16:06:00 +0000 (16:06 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 8 Mar 2008 16:06:00 +0000 (16:06 +0000)
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

gio/ChangeLog
gio/glocalfile.c

index 39be63f..5c5c3f2 100644 (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:
index e718e40..5683b38 100644 (file)
 #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