0003-Add-missing-limits.h-include.patch 961 B

1234567891011121314151617181920212223242526272829303132
  1. From b2c6d3744dca029560d0d5e780f16561f8eeed53 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sun, 12 Jul 2015 16:22:14 +0200
  4. Subject: [PATCH] Add missing <limits.h> include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. key.dns_resolver.c uses ‘UINT_MAX’ and ‘ULONG_MAX’, but forgets to
  9. include <limits.h>, which causes build failure with certain C
  10. libraries (notably the musl C library).
  11. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  12. ---
  13. key.dns_resolver.c | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/key.dns_resolver.c b/key.dns_resolver.c
  16. index c2a9fe5..d41e219 100644
  17. --- a/key.dns_resolver.c
  18. +++ b/key.dns_resolver.c
  19. @@ -56,6 +56,7 @@
  20. #include <stdlib.h>
  21. #include <unistd.h>
  22. #include <time.h>
  23. +#include <limits.h>
  24. static const char *DNS_PARSE_VERSION = "1.0";
  25. static const char prog[] = "key.dns_resolver";
  26. --
  27. 2.4.5