From patchwork Wed Aug 3 08:43:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 655295 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 3s468x3gw6z9sxR for ; Wed, 3 Aug 2016 18:45:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757409AbcHCIpP (ORCPT ); Wed, 3 Aug 2016 04:45:15 -0400 Received: from sauhun.de ([89.238.76.85]:37387 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756294AbcHCIom (ORCPT ); Wed, 3 Aug 2016 04:44:42 -0400 Received: from dslb-178-008-088-250.178.008.pools.vodafone-ip.de ([178.8.88.250]:35440 helo=localhost) by pokefinder.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bUrmT-0002Q3-17; Wed, 03 Aug 2016 10:44:01 +0200 From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Jean Delvare , Wolfram Sang Subject: [PATCH] i2c-tools: fix feature test macros for glibc >= 2.20 Date: Wed, 3 Aug 2016 10:43:56 +0200 Message-Id: <1470213836-2848-1-git-send-email-wsa@the-dreams.de> 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 Reviewed-by: Jean Delvare --- tools/i2cbusses.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/i2cbusses.c b/tools/i2cbusses.c index b3093aa..28e3682 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.20 */ #include #include