From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: normalperson@yhbt.net Received: from zedshaw2.xen.prgmr.com (zedshaw2.xen.prgmr.com [71.19.156.177]) by dcvr.yhbt.net (Postfix) with ESMTP id 76AA21F78E for ; Thu, 26 Sep 2013 21:40:11 +0000 (UTC) Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id D8B7C74EA5 for ; Thu, 26 Sep 2013 21:50:53 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 26 Sep 2013 21:40:00 +0000 From: Eric Wong List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Message-Id: <1380231600-27298-3-git-send-email-normalperson@yhbt.net> Precedence: list References: <1380231600-27298-1-git-send-email-normalperson@yhbt.net> Sender: sleepy.penguin@librelist.org Subject: [sleepy.penguin] [PATCH 3/3] init: avoid redefinition warning for _GNU_SOURCE To: sleepy.penguin@librelist.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is already defined for most (if not all) Rubies when ruby.h is included. --- ext/sleepy_penguin/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/sleepy_penguin/init.c b/ext/sleepy_penguin/init.c index 9b4f31c..90eddbd 100644 --- a/ext/sleepy_penguin/init.c +++ b/ext/sleepy_penguin/init.c @@ -1,5 +1,8 @@ -#define _GNU_SOURCE #include +#ifndef _GNU_SOURCE +# define _GNU_SOURCE /* TODO: confirm this is needed */ +#endif + #include #include #include "git_version.h" -- 1.8.4