diff --git a/src/include/cross/ios.aarch64 b/src/include/cross/ios.aarch64 index d4fff14d5c..3b6c4c5cdf 100644 --- a/src/include/cross/ios.aarch64 +++ b/src/include/cross/ios.aarch64 @@ -162,7 +162,7 @@ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `fdatasync' function. */ -#define HAVE_FDATASYNC 1 +/* #undef HAVE_FDATASYNC */ /* Define to 1 if you have the `fegetenv' function. */ #define HAVE_FEGETENV 1 @@ -590,7 +590,7 @@ #define STDC_HEADERS 1 /* Define this if databases on raw devices should be supported */ -#define SUPPORT_RAW_DEVICES 1 +/* #undef SUPPORT_RAW_DEVICES */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 diff --git a/src/isql/isql.epp b/src/isql/isql.epp index 108ed3fecd..d792273927 100644 --- a/src/isql/isql.epp +++ b/src/isql/isql.epp @@ -4235,6 +4235,9 @@ static processing_state copy_table(TEXT* source, { fclose(isqlGlob.Out); +#ifdef IOS + STDERROUT("Table copy not supported on iOS"); +#else // easy to make a copy in another database const TEXT* altdb = isqlGlob.global_Db_name; if (*otherdb) @@ -4246,6 +4249,7 @@ static processing_state copy_table(TEXT* source, IUTILS_msg_get(COPY_ERR, errbuf, SafeArg() << destination << altdb); STDERROUT(errbuf); } +#endif } unlink(ftmp.c_str()); @@ -5022,6 +5026,9 @@ static processing_state escape(const TEXT* cmd) if (!*shellcmd) shellcmd = emptyCmd; +#ifdef IOS + return FAIL; +#else const int rc = system(shellcmd); #ifdef WIN_NT @@ -5032,6 +5039,7 @@ static processing_state escape(const TEXT* cmd) #endif return rc ? FAIL : SKIP; +#endif // IOS } diff --git a/src/jrd/replication/Utils.cpp b/src/jrd/replication/Utils.cpp index 7f9ff6fe85..8595c42c94 100644 --- a/src/jrd/replication/Utils.cpp +++ b/src/jrd/replication/Utils.cpp @@ -251,6 +251,9 @@ namespace Replication DWORD exitCode = 0; GetExitCodeProcess(seInfo.hProcess, &exitCode); return (int) exitCode; +#elif defined(IOS) + errno = EPERM; + return -1; #else return system(command.c_str()); #endif