From patchwork Sun Feb 23 22:58:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 323383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id D4AD12C01AE for ; Mon, 24 Feb 2014 09:58:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C81818CB4C; Sun, 23 Feb 2014 22:58:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E2fhw8Lfneub; Sun, 23 Feb 2014 22:58:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9A30E8CAD1; Sun, 23 Feb 2014 22:58:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9A4521BF9D3 for ; Sun, 23 Feb 2014 22:58:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 969C98CAD7 for ; Sun, 23 Feb 2014 22:58:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id byYjOp4NTjO5 for ; Sun, 23 Feb 2014 22:58:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id 276CA8CAB1 for ; Sun, 23 Feb 2014 22:58:15 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id BD8FC893; Sun, 23 Feb 2014 23:58:19 +0100 (CET) Received: from localhost (build.free-electrons.com [5.9.61.205]) by mail.free-electrons.com (Postfix) with ESMTPSA id 36B9384D for ; Sun, 23 Feb 2014 23:58:19 +0100 (CET) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sun, 23 Feb 2014 23:58:05 +0100 Message-Id: <1393196291-12636-2-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393196291-12636-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1393196291-12636-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCH 1/7] cairo: fix build on Blackfin in test/cairo-test-runner.c X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Add a patch for Cairo that ensures is properly included to get the prototype of readlink and getppid even on non-MMU platforms. Fixes: http://autobuild.buildroot.net/results/93a97f90345d193b52035b2dc7559a306e11098e/ Signed-off-by: Thomas Petazzoni --- package/cairo/cairo-003-fix-nofork-build.patch | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/cairo/cairo-003-fix-nofork-build.patch diff --git a/package/cairo/cairo-003-fix-nofork-build.patch b/package/cairo/cairo-003-fix-nofork-build.patch new file mode 100644 index 0000000..702e991 --- /dev/null +++ b/package/cairo/cairo-003-fix-nofork-build.patch @@ -0,0 +1,29 @@ +test: fix build when SHOULD_FORK is false + +The code in test/cairo-test-runner.c properly takes into account +platforms that do have fork() support, and uses the SHOULD_FORK define +to know whether fork is available or not. + +However, this SHOULD_FORK macro is used to guard the inclusion of +, which is needed to get the prototype of other functions +(namely readlink and getppid), that are used in portions of this file +not guarded by SHOULD_FORK. + +Signed-off-by: Thomas Petazzoni + +Index: b/test/cairo-test-runner.c +=================================================================== +--- a/test/cairo-test-runner.c ++++ b/test/cairo-test-runner.c +@@ -36,10 +36,10 @@ + #include /* for version information */ + + #define SHOULD_FORK HAVE_FORK && HAVE_WAITPID +-#if SHOULD_FORK + #if HAVE_UNISTD_H + #include + #endif ++#if SHOULD_FORK + #if HAVE_SIGNAL_H + #include + #endif