From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id 6C2CD76651 for ; Sat, 3 Sep 2016 00:12:34 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id v143so4748189wmv.1 for ; Fri, 02 Sep 2016 17:12:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yXbuiQX2J7SRyGRewGRInb3rTbVztKF1yTjcini5kIs=; b=iSFERH4wvy+4njvQLEDYYcwr52o/LnU5BYlOOMenyjMrwxIT5EvB8arNhCK7ea2S0z zVUlzx6paB6sYgw7+42UCKvsoGyXOnErMoiEm3JE6Qp8Woa0wQ7YFqinOsZ3E5g7d/vU SoH9ZCKyJAndWMowtvTEiwmWpL0sEbGDRct/zt73P24ACN3b3USEVaP1BzYmm5U3Sxu+ QqWeSkQ3CB4Wewyq7igCi2grSJY39WAwHa1hqusxumOxt7QFTgTEjsHjbZg9b739FRD1 J/AyHHbDWiTSYt2Ss0lLSCgrRbq0dNDB0Klf9pxQiM632MDUTpEGAJt25aGOyY7v30hv Vnxg== X-Gm-Message-State: AE9vXwMSUpFceenu8+2vb93aM/wOJAQK5gLK736swBw6M0k3xIDrbAQGpbti2ejBrpVacg== X-Received: by 10.194.123.228 with SMTP id md4mr21744854wjb.91.1472861555032; Fri, 02 Sep 2016 17:12:35 -0700 (PDT) Received: from tfsielt31850.tycofs.com (31-187-15-27.dynamic.upc.ie. [31.187.15.27]) by smtp.gmail.com with ESMTPSA id a3sm12765902wjw.15.2016.09.02.17.12.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 17:12:34 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: openembedded-core@lists.openembedded.org Date: Sat, 3 Sep 2016 01:12:20 +0100 Message-Id: <20160903001222.2864-2-git@andred.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160903001222.2864-1-git@andred.net> References: <20160829110341.13100-1-git@andred.net> <20160903001222.2864-1-git@andred.net> MIME-Version: 1.0 Subject: [PATCH v3 1/3] boost: fix a musl compilation warning X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2016 00:12:35 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/12419 Signed-off-by: André Draszik --- ...detail-socket_types.hpp-fix-poll.h-includ.patch | 49 ++++++++++++++++++++++ meta/recipes-support/boost/boost_1.61.0.bb | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-support/boost/boost/0001-boost-asio-detail-socket_types.hpp-fix-poll.h-includ.patch diff --git a/meta/recipes-support/boost/boost/0001-boost-asio-detail-socket_types.hpp-fix-poll.h-includ.patch b/meta/recipes-support/boost/boost/0001-boost-asio-detail-socket_types.hpp-fix-poll.h-includ.patch new file mode 100644 index 0000000..8a85aac --- /dev/null +++ b/meta/recipes-support/boost/boost/0001-boost-asio-detail-socket_types.hpp-fix-poll.h-includ.patch @@ -0,0 +1,49 @@ +From 40192301130dcd913aa6d9cb9dba9e5f8dbd9d16 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andr=C3=A9=20Draszik?= +Date: Wed, 24 Aug 2016 21:01:43 +0100 +Subject: [PATCH 1/4] use POSIX poll.h instead of sys/poll.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +POSIX specifies that is the correct header to +include for poll() + http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html +whereas is only needed for ancient glibc (<2.3), +so let's follow POSIX instead. + +As a side-effect, this silences a warning when compiling +against the musl C-library: + +In file included from ./boost/asio/detail/socket_types.hpp:61:0, + from ./boost/asio/ip/address_v4.hpp:21, + from ./boost/asio/ip/address.hpp:21, + from libs/log/src/init_from_settings.cpp:65: +/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] + #warning redirecting incorrect #include to + ^~~~~~~ + +etc. + +Signed-off-by: André Draszik +--- +Upstream-Status: Submitted https://svn.boost.org/trac/boost/ticket/12419 + boost/asio/detail/socket_types.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/boost/asio/detail/socket_types.hpp b/boost/asio/detail/socket_types.hpp +index e8c7109..7e65d3c 100644 +--- a/boost/asio/detail/socket_types.hpp ++++ b/boost/asio/detail/socket_types.hpp +@@ -58,7 +58,7 @@ + #else + # include + # if !defined(__SYMBIAN32__) +-# include ++# include + # endif + # include + # include +-- +2.9.3 + diff --git a/meta/recipes-support/boost/boost_1.61.0.bb b/meta/recipes-support/boost/boost_1.61.0.bb index 1116444..41ff203 100644 --- a/meta/recipes-support/boost/boost_1.61.0.bb +++ b/meta/recipes-support/boost/boost_1.61.0.bb @@ -5,4 +5,5 @@ SRC_URI += "\ file://arm-intrinsics.patch \ file://consider-hardfp.patch \ file://boost-CVE-2012-2677.patch \ + file://0001-boost-asio-detail-socket_types.hpp-fix-poll.h-includ.patch \ " -- 2.9.3