| Message ID | 20260205211540.3724506-1-joel@rtems.org |
|---|---|
| State | New |
| Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 6A85C4CF2FA5 for <patchwork@sourceware.org>; Thu, 5 Feb 2026 21:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A85C4CF2FA5 X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) by sourceware.org (Postfix) with ESMTPS id 912244CF2FAE for <newlib@sourceware.org>; Thu, 5 Feb 2026 21:16:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 912244CF2FAE Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 912244CF2FAE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.169 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770326171; cv=none; b=BBwwZecirB43iv/cP2X228g6+X5ZicY+sEkRWz6KvDizHf8v+ub9yDC5GjUZ7FLzoKtYnPFS0U0ZvurBzpy+oKdg/5GQ+AZq675mZWFGatlRjGv3O7um/hLzNwTIkV37q12xh1oE8DAfub+neCynsEfPAUtrDsFwJPpkra/54WQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770326171; c=relaxed/simple; bh=pFiUmZS9gBgkmLWMoY6Zdad9depbeUCb20MPscVs5oM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Bksl+ZRLVlxVGphKMaLQ5xsafOzklxOtWYCwpRxYRf1Y4JtPzxSFyWTXKDFm5oJHbiYuR0dmvxg4mrjinpbb2bxOSYj2jR0uza7+9F94TzkniRNLUrUdYXrG3ZhR6O0zx/+bPed8ol3UNZs6TR/bl/F8kqxDOYTDzyjlM3ti11I= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 912244CF2FAE Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-79274e0e56bso13934697b3.0 for <newlib@sourceware.org>; Thu, 05 Feb 2026 13:16:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770326170; x=1770930970; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=41v62zgWvPTgCj4yt4Rgf4RKDHluzxaUOg7B3svqjDc=; b=IxHNWqM3JaLrErcFs7jPgDQGQxC7eVVcgPFanXtiXtz5yZwGWg1U/kQvbGYjoxLdnG pP4nPIqgt5iRGaNGQ21o6iOSKWyhY3+o2Gr7PZwQcRLYBXsgiRJ/xZIHppKKIOphXccb uFLjCifEn7nn7dU1mszp7dpd4KwMMTRfJS7aZk5kVkEq9R4YPVdl3Kl6Llk362BKkJoR gSXqcxdT5T+0CHnuDvIbJZiaFTUPHj+SBv8HZmtNfmtWTf+gHLqNopqoILjkleiGuBnb WV00bALYC3KS4TDrTXQfK7D6On9xLMBb8uSEgOb2lwMKlbcdXIgTaTwhXdT6832W/VrL 0Gxw== X-Gm-Message-State: AOJu0YwkKLhcvZF10sg7n1aIaJr6a5Jj4dVLhxWbD/4Y6rq+azxKS0kN O/NbA+pTp5XIpGTiJEtmv1W57EagF/8hSoBtLD6NhfowX4iOA0bKlPnT1vrzvg== X-Gm-Gg: AZuq6aJlF6GUPgZLZJa6EbbsjWVQkXX9dbC4CgzUD5Nx236u2x9msx9ToZBqpqYK9kd n90R/Yk4IKUvDy+rZ4I8Aqtptqmhtg7BBewvugyapjnM3fNUOLg+f6v+j95/r0j68RaR3MBOl4i JRjAfHQJuJGBqL3TBn//bNdE1N4vvAFSRxdLIN17kidtlIRIS+ALZAFQGVwEYH5FLVwvEPZw90c HjIUdbY8ujha0EQsf21o12WHC1PusUaEnv5ehnPjy5V3iQd3ffvrOlDezGC2W/Av5Nmjy3sDEbg OEnitec2cLhGDbPguQxRQ1iLqlDmsEdKdWDVPyS5QLIilQtdCLg7GyXOiUTnjXR1eGVocooR0sz cH8a7vwqyDGvj3GCeysiGaH1q04Yyu8TTG3cpf4ocGOIk6BFh7e8agBLp03x9EBOuve8ajY/s2J RpVT/d0EHN10KKPTidtzMU44qaByRk+2KIjpAiTiwjG64iT1xRXQ== X-Received: by 2002:a05:690c:6b07:b0:784:8994:297c with SMTP id 00721157ae682-7952aa715abmr6389247b3.24.1770326170451; Thu, 05 Feb 2026 13:16:10 -0800 (PST) Received: from gitlab.oarcorp.com (d27-96-189-151.evv.wideopenwest.com. [96.27.151.189]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7952a1e583asm6133707b3.34.2026.02.05.13.16.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Feb 2026 13:16:09 -0800 (PST) From: Joel Sherrill <joel@rtems.org> To: newlib@sourceware.org Cc: Joel Sherrill <joel@rtems.org> Subject: [PATCH v2] libc/include/regex.h: Add include of <sys/_types.h> for off_t Date: Thu, 5 Feb 2026 15:15:40 -0600 Message-ID: <20260205211540.3724506-1-joel@rtems.org> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3037.2 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
[v2] libc/include/regex.h: Add include of <sys/_types.h> for off_t
|
|
Commit Message
Joel Sherrill
Feb. 5, 2026, 9:15 p.m. UTC
The winsup/ version of regex.h already had this include. Without it, including <regex.h> by itself would not compile. --- newlib/libc/include/regex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Feb 5 15:15, Joel Sherrill wrote: > The winsup/ version of regex.h already had this include. Without > it, including <regex.h> by itself would not compile. > --- > newlib/libc/include/regex.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h > index 4da1a374e..0b1c633d0 100644 > --- a/newlib/libc/include/regex.h > +++ b/newlib/libc/include/regex.h > @@ -38,9 +38,10 @@ > #define _REGEX_H_ > > #include <sys/cdefs.h> > +#include <sys/_types.h> > > /* types */ > -typedef off_t regoff_t; > +typedef _off_t regoff_t; > > typedef struct { > int re_magic; > -- > 2.47.3 LGTM, please push. Thanks, Corinna
Done. Thanks. On Sat, Feb 7, 2026 at 3:47 AM Corinna Vinschen <vinschen@redhat.com> wrote: > On Feb 5 15:15, Joel Sherrill wrote: > > The winsup/ version of regex.h already had this include. Without > > it, including <regex.h> by itself would not compile. > > --- > > newlib/libc/include/regex.h | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h > > index 4da1a374e..0b1c633d0 100644 > > --- a/newlib/libc/include/regex.h > > +++ b/newlib/libc/include/regex.h > > @@ -38,9 +38,10 @@ > > #define _REGEX_H_ > > > > #include <sys/cdefs.h> > > +#include <sys/_types.h> > > > > /* types */ > > -typedef off_t regoff_t; > > +typedef _off_t regoff_t; > > > > typedef struct { > > int re_magic; > > -- > > 2.47.3 > > LGTM, please push. > > > Thanks, > Corinna > >
diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h index 4da1a374e..0b1c633d0 100644 --- a/newlib/libc/include/regex.h +++ b/newlib/libc/include/regex.h @@ -38,9 +38,10 @@ #define _REGEX_H_ #include <sys/cdefs.h> +#include <sys/_types.h> /* types */ -typedef off_t regoff_t; +typedef _off_t regoff_t; typedef struct { int re_magic;