From patchwork Tue Aug 5 20:47:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Viti X-Patchwork-Id: 376778 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 97D7E140092 for ; Wed, 6 Aug 2014 06:49:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9232C87FE9; Tue, 5 Aug 2014 20:49:12 +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 UcaQOiulWcAU; Tue, 5 Aug 2014 20:49:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8D7B687760; Tue, 5 Aug 2014 20:49:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A48C81C1ECD for ; Tue, 5 Aug 2014 20:49:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A032B87A0A for ; Tue, 5 Aug 2014 20:49:07 +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 qn6-JugeyshJ for ; Tue, 5 Aug 2014 20:49:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7FBF28AEC8 for ; Tue, 5 Aug 2014 20:49:01 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id w61so1566498wes.23 for ; Tue, 05 Aug 2014 13:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=w/hP94KS0LLq87f/Ut5JMFspasX6QCtZiu5sqHR5dS8=; b=lRv+QKbuUvCxBbu1DK1OfOW+VwpoI4HmJ6Of0F3oKJOKjjE3mpfRIU+euNWVieoNq7 xpjWX3UKmwnu1f0ojlUkP+kk/2A1quwO5T3VWe6xXWo9yeTSWGfA1zM2Cfhg/So+Gssw U9sc1oPC+tu3J0QiZjweq5iZIAxHYDG2Wp/RRJGH1E2I913i3JoZpE5EU1PGtY51nFUu do7zKrXpTwU606NYKzuebFgmzMM1gZTkWA+iVtMM5BnreAVkMUDeo8RRclXKRbL4fJ42 lBUSRbUWH5IlXA0xdmB7c2wUVBrJlDSnTZf5mMhLLeZJAKp5sQl/rotqvxgrm6ZfGfzo cajA== X-Received: by 10.180.12.79 with SMTP id w15mr10703184wib.35.1407271735647; Tue, 05 Aug 2014 13:48:55 -0700 (PDT) Received: from slurpy.zinosat.dyndns.org ([151.16.16.254]) by mx.google.com with ESMTPSA id p3sm6641048wjw.13.2014.08.05.13.48.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Aug 2014 13:48:54 -0700 (PDT) From: Davide Viti To: buildroot@buildroot.org Date: Tue, 5 Aug 2014 22:47:08 +0200 Message-Id: <1407271628-5996-2-git-send-email-zinosat@tiscali.it> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1407271628-5996-1-git-send-email-zinosat@tiscali.it> References: <1407271628-5996-1-git-send-email-zinosat@tiscali.it> Cc: Davide Viti Subject: [Buildroot] [PATCH v2 2/2] mongoose: patch to avoid _LARGEFILE_SOURCE redefinition warning X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Davide Viti --- Changes v1 -> v2: - Rename patch following Buildroot convention (Thomas) - Add "Signed-off-by" line (Thomas) ...ongoose-0001-largefile-conditional-define.patch | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/mongoose/mongoose-0001-largefile-conditional-define.patch diff --git a/package/mongoose/mongoose-0001-largefile-conditional-define.patch b/package/mongoose/mongoose-0001-largefile-conditional-define.patch new file mode 100644 index 0000000..b1d759a --- /dev/null +++ b/package/mongoose/mongoose-0001-largefile-conditional-define.patch @@ -0,0 +1,22 @@ +Avoid the following warning, due to duplicate definition of +"_LARGEFILE_SOURCE" + +mongoose.c:52:0: warning: "_LARGEFILE_SOURCE" redefined [enabled by default] + #define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions + ^ +:0:0: note: this is the location of the previous definition + +Signed-off-by: Davide Viti + +--- mongoose-5.4/mongoose.c~ 2014-07-28 13:19:00.000000000 +0200 ++++ mongoose-5.4/mongoose.c 2014-08-04 23:10:59.164092500 +0200 +@@ -49,7 +49,9 @@ + #define _XOPEN_SOURCE 600 // For flockfile() on Linux + #define __STDC_FORMAT_MACROS // wants this for C++ + #define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX ++#ifndef _LARGEFILE_SOURCE + #define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions ++#endif + #define _FILE_OFFSET_BITS 64 // Enable 64-bit file offsets + + #ifdef _MSC_VER