channels/rdpdr/disk: fix stat64 references to STAT
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 9 Mar 2012 17:00:56 +0000 (12:00 -0500)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Fri, 9 Mar 2012 17:00:56 +0000 (12:00 -0500)
channels/rdpdr/disk/disk_file.c

index cf61066..dda4a7a 100644 (file)
@@ -190,14 +190,14 @@ static void disk_file_set_fullpath(DISK_FILE* file, char* fullpath)
 static boolean disk_file_init(DISK_FILE* file, uint32 DesiredAccess, uint32 CreateDisposition, uint32 CreateOptions)
 {
        const static int mode = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH;
-       struct stat64 st;
+       struct STAT st;
        boolean exists;
 #ifndef WIN32
        boolean largeFile = false;
 #endif 
        int oflag = 0;
 
-       if (stat64(file->fullpath, &st) == 0)
+       if (STAT(file->fullpath, &st) == 0)
        {
                file->is_dir = (S_ISDIR(st.st_mode) ? true : false);
 #ifndef WIN32