From patchwork Mon Jan 21 19:21:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1028885 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="il2ubt0y"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43k1cv3Wy0z9s2P for ; Tue, 22 Jan 2019 06:21:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 11FC184828; Mon, 21 Jan 2019 19:21:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FcoLt-Y-2jNS; Mon, 21 Jan 2019 19:21:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 727CD8448F; Mon, 21 Jan 2019 19:21:32 +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 91CD51BF20F for ; Mon, 21 Jan 2019 19:21:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8E88782FF1 for ; Mon, 21 Jan 2019 19:21:30 +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 p23PZ9TEUnbn for ; Mon, 21 Jan 2019 19:21:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9E06C82C36 for ; Mon, 21 Jan 2019 19:21:29 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id v13so24710154wrw.5 for ; Mon, 21 Jan 2019 11:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gi6C0gACp9ZDHQ4rNEUTbwDuzAr5772APZNiqUiNSCQ=; b=il2ubt0yYe1Zn58jnE9c6oQelgzf+n0Y5Pqpm5B3gPbCLKLHYNmCjosu2PkviKYgMc sMDPD1/FYEm2KfPv7oQDg471ltjcMmwmRzlmi2wxp0JS2zLgdNveqw/VnOvwMqmXO8y2 oExcA6L8itid8NO3YuikgjfaA5G0wBGV2tskyahbZ+CZY053Mw8Pwy3wZzhSPo4bPBiE LGl8D4ruBOyp4Wz6aK4W5PjY/QTbooCI7DCAfpmZJmnBVdy+UxxTeFmhu4+eVlJmVZzC KCNservJVgHfUMqaxHe9Jfn+h/xGPATlDyFuouZrcVdF7b7oaZrqobKgXBDn/vleisHy ADxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gi6C0gACp9ZDHQ4rNEUTbwDuzAr5772APZNiqUiNSCQ=; b=o2clOeNsP1HKdZRGC4obsMw54MO3Y1sYhPQg4G7LUudPscM/qGFGAb5CC8z95o5c2q p+0rCCTe2R9PrRXRBuRn85cGSJCZDvUj4eDLKwXRxIagrwbhTjquaDgt/9VpoMEyjWyG 95Y08aSCFOc/6uZYq+kyk/vb7tC9VegHVw++nfnyYQMGWND6MBaHbC4LBVualnu1XmHr zM8O+6QEGHE4SceZB3mDQutmKxy55Z3mnUw2sFerYsMKimp9fU1HK2EN3Et7ZnBh6jFR rv7SfCyD3J3Xajp+JRMsX4N0bzMpfJiNlPvpC+w7/hLJ8+emi4DwM2DWtwCb1Ck03ewT PzNQ== X-Gm-Message-State: AJcUukfmNkhEbVJD5ixIO05GgL2NwwK4LGu7vHnv8TPwUsvqp2ymelWW GApoKSgaysxhoRkG2ZHTzSSfVI+f X-Google-Smtp-Source: ALg8bN5g09M/+a/TDvZHpK3HNm1ElklWks6OhSTxhg9BlgxdUOiC0UNln7xsP77mzWUvDtijOr4PJA== X-Received: by 2002:adf:fc51:: with SMTP id e17mr28891554wrs.268.1548098487845; Mon, 21 Jan 2019 11:21:27 -0800 (PST) Received: from fabrice-VirtualBox.home (lfbn-ren-1-128-3.w83-205.abo.wanadoo.fr. [83.205.212.3]) by smtp.gmail.com with ESMTPSA id e16sm158863809wrn.72.2019.01.21.11.21.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 11:21:27 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 21 Jan 2019 20:21:13 +0100 Message-Id: <20190121192113.6077-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190121192113.6077-1-fontaine.fabrice@gmail.com> References: <20190121192113.6077-1-fontaine.fabrice@gmail.com> Subject: [Buildroot] [PATCH 2/2] dmalloc: fix build with strndup X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/5cfa01a41951ee3be2e8c1cb10edac3722d72c77 Signed-off-by: Fabrice Fontaine --- package/dmalloc/0006-fix-strndup.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/dmalloc/0006-fix-strndup.patch diff --git a/package/dmalloc/0006-fix-strndup.patch b/package/dmalloc/0006-fix-strndup.patch new file mode 100644 index 0000000000..a1865acb85 --- /dev/null +++ b/package/dmalloc/0006-fix-strndup.patch @@ -0,0 +1,24 @@ +From 005d92c2cebbde5c8623daa29725f7a62b18df7c Mon Sep 17 00:00:00 2001 +From: Siana Gearz +Date: Sat, 8 Sep 2012 22:44:35 +0200 +Subject: [PATCH] Fix strndup + +[Retrieved from: +https://github.com/siana/dmalloc/commit/005d92c2cebbde5c8623daa29725f7a62b18df7c] +Signed-off-by: Fabrice Fontaine +--- + dmalloc.h.3 | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dmalloc.h.3 b/dmalloc.h.3 +index 8bda997..fb538a8 100644 +--- a/dmalloc.h.3 ++++ b/dmalloc.h.3 +@@ -429,6 +429,7 @@ char *strdup(const char *string); + * + * len -> Length of the string to duplicate. + */ ++#undef strndup + extern + char *strndup(const char *string, const DMALLOC_SIZE len); +