This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
unknown type name 'cpu_set_t' in newlib/libc/include/sched.h
- From: Giacomo Tesio <giacomo at tesio dot it>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>, Giacomo Tesio <giacomo at tesio dot it>
- Date: Mon, 12 Aug 2019 11:05:57 +0200
- Subject: unknown type name 'cpu_set_t' in newlib/libc/include/sched.h
- References: <CAHL7psFqvdOO1dioxgX-swJ9OZWMkZ0RB7abEEkXy=ibVbWW=w@mail.gmail.com> <20190812075243.GC11632@calimero.vinschen.de>
On Monday, 12 August 2019, Corinna Vinschen <vinschen@redhat.com> wrote:
> On Aug 12 02:28, Giacomo Tesio wrote:
>> Hello everybody,
>>
>> apparently commit 383e19ca552234fa9af47e80cb00d843a96de9e3 moved the
>> cpu_set_t typedef from newlib/libc/include/sched.h to cygwin specific
>> stuff, but left a few functions using such type behind and
>> unprotected.
>>
>> Is it intended?
>
> Probably not, if it leads to build errors on non-Cygwin, non-RTEMS.
>
> Does it?
Yes it produce build errore in my os port because I don't have it defined
anywhere.
You could either protect the functions with an ifdef or move back the
typedef to sched.h
Giacomo