From patchwork Mon Jun 13 19:45:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 634838 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rT3DK4HYBz9ssM for ; Tue, 14 Jun 2016 05:45:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 63E0B31CF7; Mon, 13 Jun 2016 19:45:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ggZwVBngQNJ5; Mon, 13 Jun 2016 19:45:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B6E5B2FF3C; Mon, 13 Jun 2016 19:45:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DA5E51CEF9E for ; Mon, 13 Jun 2016 19:45:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D64F68A16A for ; Mon, 13 Jun 2016 19:45:46 +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 Qca0gjIAz6KR for ; Mon, 13 Jun 2016 19:45:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by whitealder.osuosl.org (Postfix) with ESMTPS id 937CE89BC0 for ; Mon, 13 Jun 2016 19:45:45 +0000 (UTC) Received: from fwd14.aul.t-online.de (fwd14.aul.t-online.de [172.20.26.242]) by mailout03.t-online.de (Postfix) with SMTP id 8AB2C422324F for ; Mon, 13 Jun 2016 21:45:43 +0200 (CEST) Received: from fli4l.lan.fli4l (Tt9P9qZAwh2Vp5QzSh8bJDw1hRvkfJ0Qx8u8T0wcSzhmtrFgkJxVGhSJXnNWH6iQJR@[84.178.242.223]) by fwd14.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1bCXnh-11Ue9o0; Mon, 13 Jun 2016 21:45:33 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:50310 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.87) (envelope-from ) id 1bCXng-0000hb-Ha; Mon, 13 Jun 2016 21:45:32 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Mon, 13 Jun 2016 21:45:31 +0200 Message-Id: <1465847131-23796-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.8.1 X-ID: Tt9P9qZAwh2Vp5QzSh8bJDw1hRvkfJ0Qx8u8T0wcSzhmtrFgkJxVGhSJXnNWH6iQJR X-TOI-MSGID: 2234947c-af1e-4d3a-b317-bc89ba0091e3 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v2 1/1] package/linknx: make it build with the musl C library X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Fixes http://autobuild.buildroot.net/results/c0f/c0f59d3f9eb115072d410ef199f4773f2c380d6d/ Signed-off-by: Bernd Kuhls --- v2: added better patch description and sent patch upstream package/linknx/0002-musl-cdefs.patch | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/linknx/0002-musl-cdefs.patch diff --git a/package/linknx/0002-musl-cdefs.patch b/package/linknx/0002-musl-cdefs.patch new file mode 100644 index 0000000..59e28ca --- /dev/null +++ b/package/linknx/0002-musl-cdefs.patch @@ -0,0 +1,37 @@ +Do not use the non-standard header + + is glibc-specific, and should be used only internally by +glibc, not by external libraries/programs. It is not available in all +standard C libraries. + +Signed-off-by: Bernd Kuhls +(Patch sent upstream: https://sourceforge.net/p/linknx/patches/21/) + +diff -uNr linknx-0.0.1.32.org/include/eibclient.h linknx-0.0.1.32/include/eibclient.h +--- linknx-0.0.1.32.org/include/eibclient.h 2007-10-11 01:55:33.000000000 +0200 ++++ linknx-0.0.1.32/include/eibclient.h 2016-01-23 23:21:17.315006629 +0100 +@@ -27,11 +27,12 @@ + #ifndef EIBCLIENT_H + #define EIBCLIENT_H + +-#include "sys/cdefs.h" + #include "stdint.h" + #include + +-__BEGIN_DECLS; ++#ifdef __cplusplus ++extern "C" { ++#endif + + #include "eibloadresult.h" + +@@ -705,5 +706,8 @@ + */ + int EIB_LoadImage_async (EIBConnection * con, const uint8_t * image, int len); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif ++ + #endif