can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8

Brian Inglis Brian.Inglis@Shaw.ca
Wed Aug 30 18:04:00 GMT 2023


On 2023-08-30 06:17, Corinna Vinschen via Cygwin-apps wrote:
> On Aug 30 11:57, Corinna Vinschen via Cygwin-apps wrote:
>> On Aug 30 11:34, Corinna Vinschen via Cygwin-apps wrote:
>>>   #define CPU_ZERO_S(siz, set) __cpuset_zero_s (siz, set)
>>> -static __inline void
>>> -__cpuset_zero_s (size_t siz, cpu_set_t *set)
>>> -{
>>> -  (void) memset (set, 0, siz);
>>> -}
>>> +void __cpuset_zero_s (size_t, cpu_set_t *);
>>>   [...]
>>> +__cpuset_zero_s (size_t siz, cpu_set_t *set)
>>> +{
>>> +  (void) memset (set, 0, siz);
>>> +}
>>> +
>>>   } /* extern C */
>>
>> Also, we can avoid an external __cpuset_zero_s function by just using a
>> loop, kind of like this:
> 
> I attached a matching patch. Please give it a try.

Shouldn't cpuset.h #include <stddef.h> for size_t and <sys/types.h> for pid_t?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry



More information about the Cygwin-apps mailing list