AIX compilation fixes from Paul Thiessen

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-15 15:11:06 +00:00
parent 5737d05f86
commit fbfb3fb3c7
5 changed files with 14 additions and 2 deletions

View 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");