From patchwork Sun Sep 26 21:42:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 65803 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9B643B70DA for ; Mon, 27 Sep 2010 07:42:58 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OzyyY-0007ll-Ij; Sun, 26 Sep 2010 21:41:38 +0000 Received: from smtp.gentoo.org ([140.211.166.183]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OzyyW-0007lI-8S for linux-mtd@lists.infradead.org; Sun, 26 Sep 2010 21:41:36 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3456E1B400B for ; Sun, 26 Sep 2010 21:41:35 +0000 (UTC) From: Mike Frysinger To: linux-mtd@lists.infradead.org Subject: [PATCH] recv_image: fix __USE_GNU hack Date: Sun, 26 Sep 2010 17:42:29 -0400 Message-Id: <1285537349-6878-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1285526931-4005-1-git-send-email-vapier@gentoo.org> References: <1285526931-4005-1-git-send-email-vapier@gentoo.org> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100926_174136_428174_528EF09E X-CRM114-Status: GOOD ( 11.78 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [140.211.166.183 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The __USE_GNU define is an internal define that source code should never be touching. So switch it to the proper exported _BSD_SOURCE define. Signed-off-by: Mike Frysinger --- note: this depends on the program_name cleanup only because it changes code in the same area recv_image.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/recv_image.c b/recv_image.c index fb8e8b3..a3c3fd5 100644 --- a/recv_image.c +++ b/recv_image.c @@ -1,11 +1,11 @@ #define PROGRAM_NAME "recv_image" #define _XOPEN_SOURCE 500 +#define _BSD_SOURCE /* struct ip_mreq */ #include #include #include -#define __USE_GNU #include #include #include