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;