From 1fc7be36ebd968f13f1d29c3c19cb847b9a0e268 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 8 Mar 2019 17:15:01 +1100 Subject: [PATCH] #include for PATH_MAX, define if not found --- lib/dns/gen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index cd31d60ee4..4e5aae341c 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;