[PATCH v2 1/2] timezone: sync to tzdb 2026b
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Tue May 19 12:10:38 GMT 2026
On 19/05/26 09:04, Joseph Myers wrote:
> On Fri, 15 May 2026, Adhemerval Zanella Netto wrote:
>
>>> +#ifndef HAVE_MEMPCPY
>>> +# if (defined mempcpy \
>>> + || defined __FreeBSD__ || defined __NetBSD__ || defined __linux__)
Maye use __GLIBC__ and something for musl instead?
>>> +# define HAVE_MEMPCPY 1
>>> +# else
>>> +# define HAVE_MEMPCPY 0
>>> +# endif
>>> +#endif
>>> +#if !HAVE_MEMPCPY
>>> +static void *
>>> +mempcpy(void *restrict s1, void const *restrict s2, size_t n)
>>> +{
>>> + char *p = memcpy(s1, s2, n);
>>> + return p + n;
>>> +}
>>> +#endif
>
> This breaks the build for Hurd (error: static declaration of 'mempcpy'
> follows non-static declaration).
>
More information about the Libc-alpha
mailing list