Home | History | Annotate | Download | only in common
History log of /src/usr.sbin/mopd/common/port.h
RevisionDateAuthorComments
 1.3  25-Nov-2024  gutteridge mopd/common/port.h: apply minor KNF
 1.2  25-Nov-2024  gutteridge mopd/common/port.h: fix vax tools build failure on recent Linux

This header provided a definition of strlcpy(3) that doesn't align
with the common/expected return type (char * here vs. size_t normally).
glibc 2.38 and later provide strlcpy(3), which causes this to break the
vax tools build on recent Linux distros like Fedora 40.

As an immediate fix, simply comment this out. This shouldn't be needed
on any Linux host tools build, as strlcpy(3) is provided by compat
anyway. Build tested on Fedora 40 and Debian 12 (which has glibc 2.36,
without the function).

(The getprogname(3) definition still seems to be needed on Fedora 40.)

Issue reported by Jan-Benedict Glaw.
 1.1  08-Jun-2016  christos branches: 1.1.28;
portability macros.
 1.1.28.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed