[PATCH v2 1/2] timezone: sync to tzdb 2026b

Joseph Myers josmyers@redhat.com
Tue May 19 12:04:34 GMT 2026


On Fri, 15 May 2026, Adhemerval Zanella Netto wrote:

> > +#ifndef HAVE_MEMPCPY
> > +# if (defined mempcpy \
> > +      || defined __FreeBSD__ || defined __NetBSD__ || defined __linux__)
> > +#  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).

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list