Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.sbin/mopd/common



Module Name:    src
Committed By:   gutteridge
Date:           Mon Nov 25 21:20:46 UTC 2024

Modified Files:
        src/usr.sbin/mopd/common: port.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/mopd/common/port.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index