Ticket #2992: 040_str_verscmp.patch

File 040_str_verscmp.patch, 1.1 KB (added by zyxmon, 12 years ago)

patch to fix an issue

  • src/filemanager/filegui.c

    diff -Naur mc-4.8.8/src/filemanager/filegui.c mc-4.8.8.new/src/filemanager/filegui.c
    old new  
    120120    struct utsname name; 
    121121 
    122122    if (statvfs_works_cache < 0) 
    123         statvfs_works_cache = (uname (&name) == 0 && 0 <= strverscmp (name.release, "2.6.36")); 
     123        statvfs_works_cache = (uname (&name) == 0 && 0 <= str_verscmp (name.release, "2.6.36")); 
    124124    return statvfs_works_cache; 
    125125} 
    126126#endif 
  • src/filemanager/mountlist.c

    diff -Naur mc-4.8.8/src/filemanager/mountlist.c mc-4.8.8.new/src/filemanager/mountlist.c
    old new  
    320320    struct utsname name; 
    321321 
    322322    if (statvfs_works_cache < 0) 
    323         statvfs_works_cache = (uname (&name) == 0 && 0 <= strverscmp (name.release, "2.6.36")); 
     323        statvfs_works_cache = (uname (&name) == 0 && 0 <= str_verscmp (name.release, "2.6.36")); 
    324324    return statvfs_works_cache; 
    325325} 
    326326#endif