On Thu, Oct 31, 2024 at 08:58:44AM +0100, Thomas Klausner wrote: > On Thu, Oct 31, 2024 at 08:32:02AM +0100, K. Schreiner wrote: > > compile ctags/lisp.lo > > /u/NetBSD/src.ks/tools/ctags/../../usr.bin/ctags/ctags.c: In function > > 'main': > > /u/NetBSD/src.ks/tools/ctags/../../usr.bin/ctags/ctags.c:144:19: warning: > > implicit declaration of function 'shquote' [-Wimplicit-function-declaration] > > 144 | if ((sz = shquote(outfile, tname, sizeof tname)) >= sizeof > > tname) { > > | ^~~~~~~ > > I just checked on NetBSD and don't see the warning, and the file > includes stdlib.h now like it should, so this is probably solved.
This is the tools build, so <stdlib.h> will be the host's stdlib. Since shquote is an extension it should come from tools/compat (libnbcompat). The shquote(3) usage in ctags(1) has only been added in the last few days... Martin