From patchwork Fri May 14 13:27:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Kujau X-Patchwork-Id: 99611 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4EDToBa018953 for ; Fri, 14 May 2010 13:29:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758048Ab0ENN3s (ORCPT ); Fri, 14 May 2010 09:29:48 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:46240 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752874Ab0ENN3s (ORCPT ); Fri, 14 May 2010 09:29:48 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4EDTRbY026789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 May 2010 13:29:29 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4E7gbfX007140; Fri, 14 May 2010 13:29:23 GMT Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 241745211273843651; Fri, 14 May 2010 06:27:31 -0700 Received: from mallory.local (/67.174.250.117) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 May 2010 06:27:30 -0700 Message-ID: <4BED4FC0.1000004@oracle.com> Date: Fri, 14 May 2010 06:27:28 -0700 From: Christian Kujau Reply-To: Christian Kujau User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: linux-btrfs@vger.kernel.org, chris.mason@oracle.com CC: zhaolei@cn.fujitsu.com, miaox@cn.fujitsu.com Subject: Re: implicit declaration of function 'strndup' References: In-Reply-To: X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090201.4BED503A.00FD:SCFMA922111,ss=1,fgs=0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 14 May 2010 13:29:50 +0000 (UTC) diff --git a/btrfs-list.c b/btrfs-list.c index 7741705..9dedb5d 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -16,6 +16,7 @@ * Boston, MA 021110-1307, USA. */ +#define _GNU_SOURCE #ifndef __CHECKER__ #include #include diff --git a/btrfs.c b/btrfs.c index ab5e57f..46314cf 100644 --- a/btrfs.c +++ b/btrfs.c @@ -14,7 +14,7 @@ * Boston, MA 021110-1307, USA. */ - +#define _GNU_SOURCE #include #include #include --