-#ifdef __UNIX__
-int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
-{
- wxFAIL_MSG(wxT("wxAddProcessCallback() function not ready"));
- return 0;
+ FSRef fsRef ;
+ OSErr err = noErr ;
+ err = wxMacPathToFSRef( command , &fsRef ) ;
+ if ( noErr == err )
+ {
+ err = LSOpenFSRef( &fsRef , NULL ) ;
+ }
+
+ // 0 means execution failed. Returning non-zero is a PID, but not
+ // on Mac where PIDs are 64 bits and won't fit in a long, so we
+ // return a dummy value for now.
+ return ( err == noErr ) ? -1 : 0;