From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id ED5D31F47C for ; Fri, 13 Jan 2023 07:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1673596436; bh=PyA+woBKHE1ZSnXrpHona8iela8evc74blW/L/JDqbM=; h=From:To:Subject:Date:From; b=GNmksGbI2C77OdjlKfvL02pqsXTk3YlhJEaWqnjnx40chZDBBIbe2/tMsh8Jnp9lP PFt8qeTiOy3qU87Nj6qt8uL7W2hMiCCKeCtHPG7MjBts8xdMrvg3OUDJa0GtCHbHMf QOfpKp8AOhAzUklBtEwXVYNugGYI7+HgE5vcRu+I= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH] move _GNU_SOURCE definition Date: Fri, 13 Jan 2023 07:53:57 +0000 Message-Id: <20230113075357.2857455-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This is to make the Ruby version happy. --- mwrap_core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mwrap_core.h b/mwrap_core.h index a2c6d4a..a246fea 100644 --- a/mwrap_core.h +++ b/mwrap_core.h @@ -4,6 +4,9 @@ * Disclaimer: I don't really know my way around XS or Perl internals well */ #define _LGPL_SOURCE /* allows URCU to inline some stuff */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include "mymalloc.h" /* includes dlmalloc_c.h */ #ifndef MWRAP_PERL # define MWRAP_PERL 0 @@ -18,9 +21,6 @@ # define MWRAP_BT_MAX 32 #endif -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif #include #include #include