From 7c963d0fc4de2cdb7cc0cbeccf5cdb2ba0f277cd Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 20 Jun 2019 15:29:20 +1000 Subject: [PATCH] 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", \