0002-Include-stdarg-for-va_list.patch 755 B

1234567891011121314151617181920212223242526272829
  1. From 7795c02fb1e0f5fdbdf949007e52684c590235d4 Mon Sep 17 00:00:00 2001
  2. From: Derrick Lyndon Pallas <derrick@meter.com>
  3. Date: Wed, 14 Oct 2020 18:40:38 +0000
  4. Subject: [PATCH] Include stdarg for va_list
  5. While several function signatures use va_list, stdarg was never included.
  6. This fixes that.
  7. Signed-off-by: Derrick Lyndon Pallas <derrick@meter.com>
  8. ---
  9. ipcalc.h | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. diff --git a/ipcalc.h b/ipcalc.h
  12. index 0e81320..a220dc5 100644
  13. --- a/ipcalc.h
  14. +++ b/ipcalc.h
  15. @@ -20,6 +20,8 @@
  16. #ifndef _IPCALC_H
  17. #define _IPCALC_H
  18. +#include <stdarg.h> /* for va_list */
  19. +
  20. #if defined(USE_GEOIP)
  21. void geo_ip_lookup(const char *ip, char **country, char **ccode, char **city, char **coord);
  22. int geo_setup(void);
  23. --
  24. 2.28.0