IOS build fix.

system call is disabled on this platform.
This commit is contained in:
David Carlier
2019-12-06 18:43:15 +00:00
parent 8bc0b646f0
commit ef43a4f82e
3 changed files with 12 additions and 2 deletions

View File

@ -683,12 +683,16 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
#endif /* ^!SIMPLE_FILES */
++unique_crashes;
if (infoexec) // if the user wants to be informed on new crashes - do
if (infoexec) { // if the user wants to be informed on new crashes - do
#if !TARGET_OS_IPHONE
// that
if (system(infoexec) == -1)
hnb += 0; // we dont care if system errors, but we dont want a
// compiler warning either
#else
WARNF("command execution unsupported");
#endif
}
last_crash_time = get_cur_time();
last_crash_execs = total_execs;