diff options
author | Jorge Lucangeli Obes <jorgelo@google.com> | 2016-01-12 21:18:59 -0800 |
---|---|---|
committer | Jorge Lucangeli Obes <jorgelo@google.com> | 2016-01-12 21:26:34 -0800 |
commit | 272e3ab72da543c3ed3cb1cf312e45796b149d19 (patch) | |
tree | cba2a5de8b3d94075ab9e71b2c83c44084438e7b | |
parent | c31391e80af7fbdb7fe06ac9bb99a85cb7542be0 (diff) | |
download | minijail-272e3ab72da543c3ed3cb1cf312e45796b149d19.tar.gz |
Fix Minijail build.
Remove 'static' qualifier from helper functions to fix the build.
Bug: None
Change-Id: I03cf18a415961ee6a32f05262b2925f6e5a8a8e5
-rw-r--r-- | libminijail.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libminijail.c b/libminijail.c index 15ac5f7..3caafa4 100644 --- a/libminijail.c +++ b/libminijail.c @@ -173,8 +173,8 @@ void minijail_preexec(struct minijail *j) /* Note, |pids| will already have been used before this call. */ } -/* Return true if kernel version is less than 3.8. */ -static int seccomp_kernel_support_not_required() +/* Returns true if the kernel version is less than 3.8. */ +int seccomp_kernel_support_not_required() { int major, minor; struct utsname uts; @@ -183,10 +183,8 @@ static int seccomp_kernel_support_not_required() ((major < 3) || ((major == 3) && (minor < 8)))); } -/* - * Allow softfail on Android devices with kernel version < 3.8. - */ -static int can_softfail() +/* Allow seccomp soft-fail on Android devices with kernel version < 3.8. */ +int can_softfail() { #if SECCOMP_SOFTFAIL if (is_android()) { |