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];
          |                                      ^~~~~~~~
This commit is contained in:
Michal Nowak 2025-05-30 10:22:48 +02:00
parent d8b8db6b97
commit b5e7d96f0a

View file

@ -18,6 +18,7 @@
#include <limits.h>
#include <stdbool.h>
#include <isc/dir.h>
#include <isc/result.h>
#include <isc/types.h>