diff --git a/fuzztest/internal/subprocess.cc b/fuzztest/internal/subprocess.cc index a670bd7a..fe7fb1e7 100644 --- a/fuzztest/internal/subprocess.cc +++ b/fuzztest/internal/subprocess.cc @@ -34,6 +34,10 @@ #include #include +#if defined(__APPLE__) +#include +#endif + #include "absl/container/flat_hash_map.h" #include "absl/functional/function_ref.h" #include "absl/strings/str_cat.h" @@ -49,8 +53,10 @@ extern char** environ; namespace fuzztest::internal { -#if !defined(_MSC_VER) && !(defined(__ANDROID_MIN_SDK_VERSION__) && \ - __ANDROID_MIN_SDK_VERSION__ < 28) +#if !defined(_MSC_VER) && \ + !(defined(__ANDROID_MIN_SDK_VERSION__) && \ + __ANDROID_MIN_SDK_VERSION__ < 28) && \ + !(defined(TARGET_OS_TV) && TARGET_OS_TV) TerminationStatus::TerminationStatus(int status) : status_(status) {} @@ -335,6 +341,9 @@ TerminationStatus RunCommandWithOutputCallbacks( FUZZTEST_INTERNAL_CHECK( false, "Subprocess library not implemented on older Android NDK versions yet"); +#elif defined(TARGET_OS_TV) && TARGET_OS_TV + FUZZTEST_INTERNAL_CHECK( + false, "Subprocess library not implemented on Apple tvOS yet"); #else SubProcess proc; return proc.Run(command_line, on_stdout_output, on_stderr_output, environment,