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] 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", \