Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [PATCH 13/13] android/emulator: Fix compilation error with musl
Date: Fri, 19 Sep 2014 16:10:16 +0200	[thread overview]
Message-ID: <1411135816-18966-14-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1411135816-18966-1-git-send-email-szymon.janc@tieto.com>

  CC       android/system-emulator.o
In file included from android/system-emulator.c:35:0:
/usr/include/sys/poll.h:1:2: error: #warning redirecting
   incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
 #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
  ^
android/system-emulator.c: In function 'signal_callback':
android/system-emulator.c:196:18: error: 'WAIT_ANY' undeclared
   (first use in this function)
    pid = waitpid(WAIT_ANY, &status, WNOHANG);
                  ^
android/system-emulator.c:196:18: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
---
 android/system-emulator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/system-emulator.c b/android/system-emulator.c
index 4adc109..71e4d9e 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -32,7 +32,7 @@
 #include <signal.h>
 #include <string.h>
 #include <libgen.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/wait.h>
 #include <sys/param.h>
 #include <sys/socket.h>
@@ -193,7 +193,7 @@ static void signal_callback(int signum, void *user_data)
 			pid_t pid;
 			int status;
 
-			pid = waitpid(WAIT_ANY, &status, WNOHANG);
+			pid = waitpid(-1, &status, WNOHANG);
 			if (pid < 0 || pid == 0)
 				break;
 
-- 
1.9.3


  parent reply	other threads:[~2014-09-19 14:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19 14:10 [PATCH 00/13] Compilation with musl C library Szymon Janc
2014-09-19 14:10 ` [PATCH 01/13] sap: Fix compilation errors with musl Szymon Janc
2014-09-19 14:10 ` [PATCH 02/13] lib: Fix compilation error " Szymon Janc
2014-09-19 14:10 ` [PATCH 03/13] android/hal-audio: Fix compilation errors " Szymon Janc
2014-09-19 14:10 ` [PATCH 04/13] tools: " Szymon Janc
2014-09-19 14:10 ` [PATCH 05/13] shared: " Szymon Janc
2014-09-19 14:10 ` [PATCH 06/13] alert: Fix compilation error " Szymon Janc
2014-09-19 14:10 ` [PATCH 07/13] core: " Szymon Janc
2014-09-19 14:10 ` [PATCH 08/13] obexd: " Szymon Janc
2014-09-19 14:10 ` [PATCH 09/13] android/pan: " Szymon Janc
2014-09-19 14:10 ` [PATCH 10/13] android/client: Fix compilation errors " Szymon Janc
2014-09-19 14:10 ` [PATCH 11/13] health: Use proper type for tid Szymon Janc
2014-09-19 14:10 ` [PATCH 12/13] emulator: Fix compilation error with musl Szymon Janc
2014-09-19 14:10 ` Szymon Janc [this message]
2014-09-24 18:33 ` [PATCH 00/13] Compilation with musl C library Johan Hedberg

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=1411135816-18966-14-git-send-email-szymon.janc@tieto.com \
    --to=szymon.janc@tieto.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