From patchwork Wed Jul 29 17:57:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Heading X-Patchwork-Id: 501784 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]) by ozlabs.org (Postfix) with ESMTP id 79E7014030C for ; Thu, 30 Jul 2015 03:57:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=tBNKW4os; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 992743399B; Wed, 29 Jul 2015 17:57:09 +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 7Lf7H2FdM7rb; Wed, 29 Jul 2015 17:57:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 051CB3360D; Wed, 29 Jul 2015 17:57:08 +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 B31D31C0B99 for ; Wed, 29 Jul 2015 17:57:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AD74192111 for ; Wed, 29 Jul 2015 17:57:06 +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 3l7OCl7vbJWd for ; Wed, 29 Jul 2015 17:57:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id C4B239210D for ; Wed, 29 Jul 2015 17:57:05 +0000 (UTC) Received: by wibxm9 with SMTP id xm9so212125731wib.0 for ; Wed, 29 Jul 2015 10:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=uVcA1LGIThNMJvihVcOjJ98fu8UWhbDWhhZtFspangQ=; b=tBNKW4osAPp0QV3CSsz3V5CKJKzcpfE9s/WJUDlk2mj0a19m/TVEUr1n/Hmfw8qMSW ixtiYT0QEoJubKF50NIbgc5wBt0kpSFSEt4k5BGjVcPtw7ccmfovtgCDm/JNTHGsDPA+ G+gW70NgNCQLLjCztqiaq2f+3JWZDXVk3gCdfeTRb1dPFx9mRbMWgnfPKO1JETM9UqTg mt7jEuQSB8BFNjxz2DXIvCeZP2Hgb+Q47bApmXn0iWrxqm6VWg4WmcdOon+hCM1Y1Cif /zD2oVRlc/0DSGVkO5XEPRXPQlK6Liq6tW6F8vj9qrl6BAv5fe9xSi5ae73K8hsv3yYf JLzg== X-Received: by 10.180.78.136 with SMTP id b8mr7884412wix.44.1438192624390; Wed, 29 Jul 2015 10:57:04 -0700 (PDT) Received: from bhfedora.localdomain ([82.15.84.251]) by smtp.gmail.com with ESMTPSA id q19sm25506568wik.16.2015.07.29.10.57.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 10:57:03 -0700 (PDT) From: Brendan Heading To: buildroot@buildroot.org Date: Wed, 29 Jul 2015 18:57:00 +0100 Message-Id: <1438192620-3601-1-git-send-email-brendanheading@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Brendan Heading Subject: [Buildroot] [PATCH 1/1] package/ctorrent: fix compilation under musl. 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/2c9/2c9ef771d146ce5b9df82735fdeb62926c84bd9f/ Build failed due to use of ssize_t without including . Patch submitted upstream (note: project appears dormant). Signed-off-by: Brendan Heading --- package/ctorrent/0001-fix-musl-build.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/ctorrent/0001-fix-musl-build.patch diff --git a/package/ctorrent/0001-fix-musl-build.patch b/package/ctorrent/0001-fix-musl-build.patch new file mode 100644 index 0000000..3ba80be --- /dev/null +++ b/package/ctorrent/0001-fix-musl-build.patch @@ -0,0 +1,20 @@ +[PATCH] Fix compilation on musl + +Using the ssize_t typedef requires including . + +See : https://sourceforge.net/p/dtorrent/patches/3/ + +Signed-off-by: Brendan Heading +Upstream-status: submitted +--- +diff -Nur a/compat.c b/compat.c +--- a/compat.c 2015-07-29 18:22:24.658415171 +0100 ++++ b/compat.c 2015-07-29 18:36:21.752576311 +0100 +@@ -63,6 +63,7 @@ + + #ifndef HAVE_STRNSTR + #include ++#include + /* FUNCTION PROGRAMER: Siberiaic Sang */ + char *strnstr(const char *haystack, const char *needle, size_t haystacklen) + {