aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/webtry/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/webtry/main.cpp')
-rw-r--r--experimental/webtry/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/experimental/webtry/main.cpp b/experimental/webtry/main.cpp
index 44f8aab70f..b2c06c0d7b 100644
--- a/experimental/webtry/main.cpp
+++ b/experimental/webtry/main.cpp
@@ -23,6 +23,8 @@ DEFINE_string(source, "", "Filename of the source image.");
extern SkBitmap source;
static bool install_syscall_filter() {
+
+#ifndef SK_UNSAFE_BUILD_DESKTOP_ONLY
struct sock_filter filter[] = {
/* Grab the system call number. */
EXAMINE_SYSCALL,
@@ -64,6 +66,9 @@ failed:
fprintf(stderr, "SECCOMP_FILTER is not available. :(\n");
}
return false;
+#else
+ return true;
+#endif /* SK_UNSAFE_BUILD_DESKTOP_ONLY */
}
static void setLimits() {