Re: [PATCH] android: Fix header include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrei,

On Wednesday 20 of August 2014 16:06:47 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> 
> Since Android KitKat we can use sys/prctl.h and sys/capability.h
> as specified in the manual page. Fixes also build warnings:
> ...
> warning: implicit declaration of function 'prctl'
> [-Wimplicit-function-declaration]
>   if (prctl(PR_SET_KEEPCAPS, 1) < 0) {
>   ^
> ...
> ---
>  android/main.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/android/main.c b/android/main.c
> index 0a0c150..5299789 100644
> --- a/android/main.c
> +++ b/android/main.c
> @@ -36,10 +36,8 @@
>  #include <unistd.h>
>  
>  #include <sys/signalfd.h>
> -#if defined(ANDROID)
> +#include <sys/prctl.h>
>  #include <sys/capability.h>
> -#include <linux/prctl.h>
> -#endif
>  
>  #include <glib.h>
>  
> 

Applied. Thanks.

-- 
Best regards, 
Szymon Janc
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux