From: Mark Andrews Date: Fri, 8 Mar 2019 06:15:01 +0000 (+1100) Subject: #include for PATH_MAX, define if not found X-Git-Tag: v9.15.0~110^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=1fc7be36ebd968f13f1d29c3c19cb847b9a0e268;p=thirdparty%2Fbind9.git #include for PATH_MAX, define if not found --- diff --git a/lib/dns/gen.c b/lib/dns/gen.c index cd31d60ee43..4e5aae341c9 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -135,6 +136,10 @@ static const char copyright[] = #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" #define ATTRIBUTESIZE 256 +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + static struct cc { struct cc *next; int rdclass;