From patchwork Fri Dec 13 07:13:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 102953 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2B4E13858410 for ; Fri, 13 Dec 2024 07:13:45 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id D2A633858C33 for ; Fri, 13 Dec 2024 07:13:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D2A633858C33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D2A633858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734073997; cv=none; b=LRIv6DYkQrNwArYrC0iy1i4F37lv91F9tKgBTYGeRoSTV+B9rISsFIVjGMAdPA3TudJJHI0jE/pEFqVgkEat40QIytlhgqtdWMW2CAlQswKQ2LPnmSY0psZi8MzKX1hO6y53nDDpEEANnuJcIWmafDQ7VxCz9YfqCVEyozXJMEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734073997; c=relaxed/simple; bh=sWuWnvR1ec8U8TYDYoFxT7Hvn7nI3d4sgbP1rerqctI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SjZZuIRxHFF4aqb6a3uWJd+d3MyGBmXzyDGFt9vOeERg6k6pF/38a/jj9AbrmT5I2lx27ovTELFF4b1Uu25TqG+6iuXInwKgOovz65TpkqPK3Q8lZvwtAhIaTB/lRYwuWGvJH2V+x8qSKo6kO76z8Mpv7q26606uK5nB5vZBrYA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-71e15717a2dso667767a34.3 for ; Thu, 12 Dec 2024 23:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734073996; x=1734678796; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=64TUrVeg65u3p+iJUqoAO49XN0Z6QhUxWJJNVF0tN0Y=; b=e5QPgn7U76fp6eMTeTfSjFoda6rW8FUCeNcY9+bSVSqndvulcv5YDesZ6N7Q/J+dlk uMa9anTWYI+grkGZceq6DD4cLP+7TtPy8jWI+KmCz6hmUYI4JA6JGDywkMQQ3+1OrPtL QaymIR/pGqKjaKlWpdqzu57RCB8ut1nn2REhiBVPQros112MTKrQVUiIOWuG6C3Te1Mi Sa+xq/S0ILL9FHok0NH2zWADma4ol9natr179A98k1YhqR3CsSLy8J0O9RpcLAbMVLMo opuZLVTTYnUkXgHfwho9nHBPqFwmyDbEmXnhIjALDVum12yOYA7BOIIqld7Blj7W6BkX E8hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734073996; x=1734678796; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=64TUrVeg65u3p+iJUqoAO49XN0Z6QhUxWJJNVF0tN0Y=; b=pUcNpuKm9JJq9UbcP5Lp6vO3F49USydg15UrJwNWvRnObMWMLIhQZFLjoaYuGERPUm GvXHi07AcWH8dTYn2NEIUhCxGB65iyrLhzh6K3UQjAMuDkDXhY+WdyXOK4bKsd6dNSQ4 y9A4gKNh6/SQ3eGpCQif36aJssvenTSJm770p4/Iom5OWoe91AdNPxuYV1y63cRVwI9+ onmhu+zUJaa9jOQepeH8ZvBQaa9tUoPorXV9qrBg5R42F81geBp8QXYOPdbLKOBxScmb atODVAzeH8MXhcFOySB6BdvG52Qf9m4bLbO7szjTeg/fNL6HPNyZG6RRxqhF3OrWXzPC +zAg== X-Gm-Message-State: AOJu0YyunwZ4JR4w+z66AeAKA9fVak82W4NKbpvvmr0gkL+vhS/aqf3f VUT/c4p9/J9WSDZ2xtOwsSLy4ABh8FLEBRe5FmVcTZfh9rug4EUi X-Gm-Gg: ASbGncvpMjf5cQQww6ZgJhUoH2vxzi8e6nX1l97w/c7pkAg9Jg8RW0ygjNiKxAaG8Iw jXsixFUeMSQQU4mVa+0vZlQtUbHQfgkFP2M9uJfUZCp1W8Zw2iteGNWA6tNhS+4LaKcjOtAt6YT s4kbP+j9JxknqLVy0zmHw7PHd82bYfeUbUpN0Nw4WS4p5nadnltttKSv28x23cbDkkXs00Ur+kU lHbJ2yhB5nlTNpWaF0whaDLDoSYd6Kptw8eC9TJ7XLpnzdSsOpaYqQVw/LBXcjTnIsZYZbjmTY5 uOnyyFkCm+vx3kHM X-Google-Smtp-Source: AGHT+IEque6+XsKGSvZencKytbPYpXchNiXnD7717iXZAn1U15J9l/j7avJ66Waxc3dOS3sOFNPqSA== X-Received: by 2002:a05:6830:7312:b0:71e:373:6257 with SMTP id 46e09a7af769-71e3b9219cdmr993211a34.21.1734073996191; Thu, 12 Dec 2024 23:13:16 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.27.218]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71e41560385sm18749a34.45.2024.12.12.23.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2024 23:13:15 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id CF20AC0236; Fri, 13 Dec 2024 15:13:10 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org Subject: [PATCH 01/10] include/bits/sigstksz.h: Avoid #elif IS_IN (libsupport) Date: Fri, 13 Dec 2024 15:13:01 +0800 Message-ID: <20241213071310.2054769-2-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241213071310.2054769-1-hjl.tools@gmail.com> References: <20241213071310.2054769-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3019.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org GCC 4.9 issues an error when generating misc/check-installed-headers-c.out: In file included from ../signal/signal.h:328:0, from ../include/signal.h:2, from ../misc/sys/param.h:28, from ../include/sys/param.h:1, from /tmp/cih_test_e156ZB.c:10: ../include/bits/sigstksz.h:5:7: error: "IS_IN" is not defined [-Werror=undef] #elif IS_IN (libsupport) ^ Use "#else" instead. Signed-off-by: H.J. Lu Reviewed-by: Sam James --- include/bits/sigstksz.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/bits/sigstksz.h b/include/bits/sigstksz.h index 2ca891e918..3b3525244c 100644 --- a/include/bits/sigstksz.h +++ b/include/bits/sigstksz.h @@ -2,6 +2,8 @@ glibc build. IS_IN can only be used when _ISOMAC isn't defined. */ #ifdef _ISOMAC # include_next -#elif IS_IN (libsupport) -# include_next +#else +# if IS_IN (libsupport) +# include_next +# endif #endif