From 79eed4e5c6a754b7d160bda41e26cf8f40746d9a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 20 Jun 2019 15:29:20 +1000 Subject: [PATCH 1/2] define ULLONG_MAX if not already defined (cherry picked from commit 4110b9184da5660372342d620700436abac25c52) --- lib/dns/gen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index 472ce43f91..201429f132 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -43,6 +43,10 @@ #include "gen-unix.h" #endif +#ifndef ULLONG_MAX +#define ULLONG_MAX (~0ULL) +#endif + #define INSIST(cond) \ if (!(cond)) { \ fprintf(stderr, "%s:%d: INSIST(%s)\n", \ From f77d5599ecaffdf4a4f7ca71bf405f6c2a5a8797 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 25 Jun 2019 09:44:07 +1000 Subject: [PATCH 2/2] add CHANGES (cherry picked from commit 5c23623094ed83bd38d67e9b12552f4622b26ec4) --- CHANGES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index e4074a5808..e85adfb68e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5253. [port] Support platforms that don't define ULLONG_MAX. + [GL #1098] + 5252. [func] Report if the last 'rndc reload/reconfig' failed in rndc status. [GL !2040]