Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] android: Fix header include
Date: Fri, 22 Aug 2014 10:20:49 +0200	[thread overview]
Message-ID: <1641453.pzoKud3VOE@uw000953> (raw)
In-Reply-To: <1408540007-7621-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

Hi Andrei,

On Wednesday 20 of August 2014 16:06:47 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> 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

      reply	other threads:[~2014-08-22  8:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-20 13:06 [PATCH] android: Fix header include Andrei Emeltchenko
2014-08-22  8:20 ` Szymon Janc [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1641453.pzoKud3VOE@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=Andrei.Emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox