Skip to content

Commit

Permalink
Add missing includes for Android (#1599)
Browse files Browse the repository at this point in the history
* Add missing includes for Android

Add platform specific includes for `prctl` and `PR_GET_NAME` on Android.

Signed-off-by: Mykhailo Diachenko <[email protected]>

* Guard includes with ifdef

Signed-off-by: Mykhailo Diachenko <[email protected]>

---------

Signed-off-by: Mykhailo Diachenko <[email protected]>
  • Loading branch information
diachenko-mischa authored Aug 1, 2024
1 parent bc9a2b0 commit f525ceb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@

#include <pthread.h>

#ifdef __ANDROID__
/* Definition of PR_* constants */
#include <linux/prctl.h>
/* Declaration of prctl */
#include <sys/prctl.h>
#endif

namespace
{
Expand Down

0 comments on commit f525ceb

Please sign in to comment.