From patchwork Sun Jul 26 22:50:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Heading X-Patchwork-Id: 500185 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3E165140323 for ; Mon, 27 Jul 2015 08:50:57 +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=vMUJ+GwE; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7393C8CB8B; Sun, 26 Jul 2015 22:50:56 +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 B63IEndmm3Ge; Sun, 26 Jul 2015 22:50:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5DDD48CB8E; Sun, 26 Jul 2015 22:50:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D92BD1C2B8D for ; Sun, 26 Jul 2015 22:50:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 809D994C8E for ; Sun, 26 Jul 2015 22:50:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6G+tv2AwlfJZ for ; Sun, 26 Jul 2015 22:50:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1667194C8C for ; Sun, 26 Jul 2015 22:50:51 +0000 (UTC) Received: by wibxm9 with SMTP id xm9so89166246wib.0 for ; Sun, 26 Jul 2015 15:50:49 -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=h5BR+O87pvSTZbB9e5B3erKj89yUHJjb/LFObYGoFQM=; b=vMUJ+GwELmbbHV+6DsW1StMPk9LPj/h9DVNLLfiBAOvmK4vE32sJ1a8PHpwVye7R94 6mGcbPOrcOTUPawq/gWjhINXpd7ydnYcSzdSnMUdByjGeMbelPs9v7HzWdj2nRxAbKI/ rgxV/hVOl0eTpnnzET5Vcz5e6ubQfDAGoAPiFfdzPTkBH4Cp1Yhgt4Kh02clCBpKe7h+ O1m2bzSDWpNNLuVmOPryr6UKS6l7b5rArymBKf+6e73xfsWLDrwjqrgDy0IrMAAxRT9D BQvL5M2EFRbMYe8hYwW9RmJTJCvy9GK/zpjiaLks/3RvgGBhJc3w2BTOcNKmqdtrU/wd 9pgw== X-Received: by 10.180.75.15 with SMTP id y15mr16916999wiv.51.1437951049755; Sun, 26 Jul 2015 15:50:49 -0700 (PDT) Received: from bhfedora.localdomain ([82.15.84.251]) by smtp.gmail.com with ESMTPSA id r8sm10377983wiz.5.2015.07.26.15.50.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jul 2015 15:50:49 -0700 (PDT) From: Brendan Heading To: buildroot@buildroot.org Date: Sun, 26 Jul 2015 23:50:45 +0100 Message-Id: <1437951045-14508-1-git-send-email-brendanheading@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Brendan Heading Subject: [Buildroot] [PATCH v2 1/1] package/exfat-utils: fix compilation error with 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" exfat-utils build would not build on Linux unless __GLIBC__ was defined. Patch added to use more relaxed __linux__ instead. See http://autobuild.buildroot.net/results/c60/c60d0f9a93c90d41c3c86c78b0a0 Signed-off-by: Brendan Heading --- Changes v1 -> v2 : - removed unnecessary dependency change - improvements (much simpler patch) as suggested by Thomas P Signed-off-by: Brendan Heading --- .../0001-fix-compiling-with-non-glibc-libcs.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch diff --git a/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch b/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch new file mode 100644 index 0000000..6244b16 --- /dev/null +++ b/package/exfat-utils/0001-fix-compiling-with-non-glibc-libcs.patch @@ -0,0 +1,23 @@ +[PATCH] fix compilation when libc does not define __GLIBC__ + +libexfat would only compile on Linux with __GLIBC__ defined. Changed +to use __linux__ which likely better fits the original intent. + +Signed-off-by: Brendan Heading +--- + platform.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libexfat/libexfat/platform.h +=================================================================== +--- libexfat/libexfat/platform.h (revision 422) ++++ libexfat/libexfat/platform.h (working copy) +@@ -24,7 +24,7 @@ + #ifndef PLATFORM_H_INCLUDED + #define PLATFORM_H_INCLUDED + +-#if defined(__GLIBC__) ++#if defined(__linux__) + + #include + #include