X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3afdfec4536f413df63a690964a9601076db7652..5cb61fed97c78e0399ba18457e45b51f8eb15edf:/src/unix/utilsunx.cpp?ds=inline diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 33caa09fb5..b9e17c0c14 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -80,6 +80,11 @@ #endif // __BSD__/!__BSD__ #define wxStatfs statfs + + #ifndef HAVE_STATFS_DECL + // some systems lack statfs() prototype in the system headers (AIX 4) + extern "C" int statfs(const char *path, struct statfs *buf); + #endif #endif // HAVE_STATFS #ifdef HAVE_STATVFS @@ -316,10 +321,10 @@ long wxExecute( const wxString& command, int flags, wxProcess *process ) long lRc; #if defined(__DARWIN__) // wxMacExecute only executes app bundles. - // It returns -1 if the target is not an app bundle, thus falling through - // to the regular wxExecute for non app bundles. + // It returns an error code if the target is not an app bundle, thus falling + // through to the regular wxExecute for non app bundles. lRc = wxMacExecute(argv, flags, process); - if( lRc != -1) + if( lRc != ((flags & wxEXEC_SYNC) ? -1 : 0)) return lRc; #endif