Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: experimental/webtry/seccomp_bpf.h

Issue 555993002: disable webtry seccmp on non-linux build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« experimental/webtry/main.cpp ('K') | « experimental/webtry/main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/seccomp_bpf.h
diff --git a/experimental/webtry/seccomp_bpf.h b/experimental/webtry/seccomp_bpf.h
index 02bf3cff3a7124d01680ee6391690a93c9671afd..c96fdfa2edc7ab21ce8902374f671f886842a761 100644
--- a/experimental/webtry/seccomp_bpf.h
+++ b/experimental/webtry/seccomp_bpf.h
@@ -14,6 +14,8 @@
#ifndef _SECCOMP_BPF_H_
#define _SECCOMP_BPF_H_
+#ifdef SK_BUILD_FOR_UNIX
+
#define _GNU_SOURCE 1
#include <stdio.h>
#include <stddef.h>
@@ -62,4 +64,6 @@ struct seccomp_data {
#define KILL_PROCESS \
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL)
+#endif /* SK_BUILD_FOR_UNIX */
+
#endif /* _SECCOMP_BPF_H_ */
« experimental/webtry/main.cpp ('K') | « experimental/webtry/main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698