From patchwork Tue Aug 9 20:53:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 657505 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3s861j59BZz9syB for ; Wed, 10 Aug 2016 06:53:13 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752499AbcHIUxM (ORCPT ); Tue, 9 Aug 2016 16:53:12 -0400 Received: from sauhun.de ([89.238.76.85]:60139 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbcHIUxM (ORCPT ); Tue, 9 Aug 2016 16:53:12 -0400 Received: from dslb-188-103-100-226.188.103.pools.vodafone-ip.de ([188.103.100.226]:59422 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bXE1N-0004U4-7w; Tue, 09 Aug 2016 22:53:09 +0200 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Jean Delvare , Wolfram Sang Subject: [PATCH v2] i2c-tools: fix feature test macros for glibc >= 2.20 Date: Tue, 9 Aug 2016 22:53:01 +0200 Message-Id: <1470775982-16231-1-git-send-email-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.8.1 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like described here: https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros Signed-off-by: Wolfram Sang --- tools/i2cbusses.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/i2cbusses.c b/tools/i2cbusses.c index b3093aa..dad22ea 100644 --- a/tools/i2cbusses.c +++ b/tools/i2cbusses.c @@ -23,7 +23,8 @@ */ /* For strdup and snprintf */ -#define _BSD_SOURCE 1 +#define _BSD_SOURCE 1 /* for glibc <= 2.19 */ +#define _DEFAULT_SOURCE 1 /* for glibc >= 2.19 */ #include #include