From: Michal Nowak Date: Fri, 30 May 2025 08:22:48 +0000 (+0200) Subject: Allow commandline.c to compile on Solaris X-Git-Tag: v9.21.9~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5e7d96f0a79ede1ebc71690b85e264846c7d55a;p=thirdparty%2Fbind9.git Allow commandline.c to compile on Solaris commandline.c failed to compile on Solaris because NAME_MAX was undefined. Include 'isc/dir.h' which defines NAME_MAX for platforms that don't define it. In file included from commandline.c:54: ./include/isc/commandline.h:31:38: error: 'NAME_MAX' undeclared here (not in a function) 31 | extern char isc_commandline_progname[NAME_MAX]; | ^~~~~~~~ --- diff --git a/lib/isc/include/isc/commandline.h b/lib/isc/include/isc/commandline.h index dfa8430d3f2..a7895a800fd 100644 --- a/lib/isc/include/isc/commandline.h +++ b/lib/isc/include/isc/commandline.h @@ -18,6 +18,7 @@ #include #include +#include #include #include