]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
#include <limits.h> for PATH_MAX, define if not found
authorMark Andrews <marka@isc.org>
Fri, 8 Mar 2019 06:15:01 +0000 (17:15 +1100)
committerMark Andrews <marka@isc.org>
Fri, 8 Mar 2019 07:24:13 +0000 (18:24 +1100)
(cherry picked from commit 1fc7be36ebd968f13f1d29c3c19cb847b9a0e268)

lib/dns/gen.c

index eaacefddec06e139a283fda3513b364903c79b5c..736c3f7468f39b0e9e2e43c8d6b25c081030e633 100644 (file)
@@ -27,6 +27,7 @@
 #include <sys/types.h>
 
 #include <ctype.h>
+#include <limits.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -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;