]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsunx.cpp
don't show size grip when maximized
[wxWidgets.git] / src / unix / utilsunx.cpp
index 171918e24ea3c1cd9e1411dd6515080b04de2887..8503131014fa0e52fc2344ead0b789e85a5edb69 100644 (file)
@@ -1016,8 +1016,9 @@ long wxGetFreeMemory()
 bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
 {
 #if defined(HAVE_STATFS) || defined(HAVE_STATVFS)
+    // the case to "char *" is needed for AIX 4.3
     struct statfs fs;
-    if ( statfs(path, &fs) != 0 )
+    if ( statfs((char *)path.fn_str(), &fs) != 0 )
     {
         wxLogSysError("Failed to get file system statistics");