Author: fperrad
Date: Mon Jan  9 00:33:29 2006
New Revision: 11012

Modified:
   trunk/src/classes/os.pmc
Log:
modif for MinGW32 (chroot & lstat)

Modified: trunk/src/classes/os.pmc
==============================================================================
--- trunk/src/classes/os.pmc    (original)
+++ trunk/src/classes/os.pmc    Mon Jan  9 00:33:29 2006
@@ -267,7 +267,7 @@ Stats a file, and returns a 13 position 
 */
 
     METHOD PMC* lstat(STRING *path) {
-#ifndef _MSC_VER
+#ifndef WIN32
         struct stat info;
         PMC *array;
 
@@ -306,12 +306,10 @@ Stats a file, and returns a 13 position 
                                          info.st_mtime);
             VTABLE_set_integer_keyed_int(interpreter, array,10,
                                          info.st_ctime);
-#ifndef WIN32
             VTABLE_set_integer_keyed_int(interpreter, array,11,
                                          info.st_blksize);
             VTABLE_set_integer_keyed_int(interpreter, array,12,
                                          info.st_blocks);
-#endif
             return array;
         }
 #else
@@ -405,7 +403,7 @@ pathnames that begin with a "/" by your 
 */
 
     METHOD void chroot(STRING* path) {
-#ifndef _MSC_VER
+#ifndef WIN32
         char *cpath = string_to_cstring(interpreter, path);
         int error = chroot(cpath);
         string_cstring_free(cpath);

Reply via email to