Skip to content

Commit d06ef88

Browse files
enh-googlehappyCoder92
authored andcommitted
Use <sys/prctl.h> rather than <linux/prctl.h>.
bionic and glibc's <sys/prctl.h> include <linux/prctl.h> for you anyway, while musl's <sys/prctl.h> and <linux/prctl.h> are incompatible, breaking Android's musl host build when we try to upgrade sandboxed-api.
1 parent 20dc0b3 commit d06ef88

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

sandboxed_api/sandbox2/forkserver.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <fcntl.h>
2020
#include <linux/filter.h>
21-
#include <linux/prctl.h>
2221
#include <linux/seccomp.h>
2322
#include <sched.h>
2423
#include <sys/prctl.h>

sandboxed_api/sandbox2/testcases/policy.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
// A binary that tries x86_64 compat syscalls, ptrace and clone untraced.
1616

17-
#include <linux/prctl.h>
1817
#include <sched.h>
1918
#include <sys/prctl.h>
2019
#include <sys/ptrace.h>

0 commit comments

Comments
 (0)