#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
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