From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id C47DC6EFDA; Wed, 18 May 2022 15:31:15 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C47DC6EFDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1652877075; bh=/cK7RAttTupGooRn0Dnz/EUVFBZMVrH0Rh1zCgRDIp8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GttFWatCZTSgAAJfaYDQgaMuleWHXCJjY7h1Kr4a676KF+vJol3JWI6G+kLk9+bjX jU3soCXnC2JgzzdPl52rRgEiBAoHNxG9YBRkfXq7vRxD4xv5SJJn9eI1MpYn+ijyHN nNyyAXnlyl0IBp0+aUxeItEaN74jhUzvajPy1VZE= Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 829B26EFDA for ; Wed, 18 May 2022 15:31:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 829B26EFDA Received: by mail-lf1-f52.google.com with SMTP id t25so3344810lfg.7 for ; Wed, 18 May 2022 05:31:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=77NqVdOHDlUQxm1p1f96Pa8JTY1ycTL8rmv+TV5poIg=; b=EYq9H2R931X1Y3UPgklCC+DAfWSjVUuUCAZ82VqV9CU3n78mR3h/eGbkH9o4ocvw1y 80PoPw+YYjGbXu9UdrDLHIhV11H8inkI+Ch+YQQrzSF32ISMRT8wJ4yEJrPyASfNIVGa Wh/XLTFEueOSHLC79GDeeQmLICoLvzoGnS/CWi7t+9gjOw2yad6qQ5jy0YtrjlM3pLiU XND83GM0T6vJI1gb79HNHmOwR0KMsHgBZGbNieXKUfcsv5JFpx8GAUXf5CZIcAwNueWE u/adZaMNyLUlv/ifN9sMhKFbrb7cDJqFp0sPU0Zl5zvNGsC8zgdWEnSl1pbmhEczL4ns ZugQ== X-Gm-Message-State: AOAM532Nuo8BalBVY4pmp4yHvKoxnUbDdkBXfDK7DCeOm9GPDdzx0K4k LRjiLfWeWDVSuXyJyHMLpREtBAM3AUs7Fg== X-Google-Smtp-Source: ABdhPJw3b1CnniQ0IuLViWencm8Nxot3ZnbZ5gbr0Xe1o0tqoO+nvqKF4iAcvQfYurvZrloNFuSeZA== X-Received: by 2002:a05:6512:13a4:b0:477:a28a:2280 with SMTP id p36-20020a05651213a400b00477a28a2280mr6015511lfa.689.1652877073481; Wed, 18 May 2022 05:31:13 -0700 (PDT) Received: from localhost.localdomain ([93.175.11.199]) by smtp.gmail.com with ESMTPSA id j5-20020ac25505000000b0047255d210f5sm201730lfk.36.2022.05.18.05.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 05:31:12 -0700 (PDT) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Wed, 18 May 2022 15:31:07 +0300 Message-Id: <20220518123108.45915-1-m.kokryashkin@tarantool.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit] symtab: check the _GNU_SOURCE definition X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Now the `_GNU_SOURCE` in `lj_symtab.c` is only defined when it wasn't defined yet. That chnage fixes the macro redifinition warning. Part of tarantool/tarantool#5813 --- Branch: https://github.com/tarantool/luajit/tree/fckxorg/sysprof-rc-full-ci src/lj_symtab.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lj_symtab.c b/src/lj_symtab.c index 57045765..2b2b205b 100644 --- a/src/lj_symtab.c +++ b/src/lj_symtab.c @@ -7,7 +7,10 @@ #define lj_symtab_c #define LUA_CORE + +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "lj_symtab.h" -- 2.36.1