--- keyutils-1.5.8.orig/key.dns_resolver.c
+++ keyutils-1.5.8/key.dns_resolver.c
@@ -56,6 +56,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <time.h>
+#include <limits.h>
 
 static const char *DNS_PARSE_VERSION = "1.0";
 static const char prog[] = "key.dns_resolver";