aboutsummaryrefslogtreecommitdiff
path: root/package/ipcalc/0002-Include-stdarg-for-va_list.patch
diff options
context:
space:
mode:
authorGravatar Derrick Lyndon Pallas <derrick@meter.com>2020-10-14 19:06:14 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-10-15 23:36:40 +0200
commitc93d63648981fde5f875453eecc7f930247b83d9 (patch)
treebe87b8d9d247b96b75d83cbbe62e782b6f1898dc /package/ipcalc/0002-Include-stdarg-for-va_list.patch
parent15dc48ca9becafec6ba11b08af18453bc0e40c9e (diff)
downloadbuildroot-c93d63648981fde5f875453eecc7f930247b83d9.tar.gz
buildroot-c93d63648981fde5f875453eecc7f930247b83d9.tar.bz2
package/ipcalc: new package
ipcalc is an ancient and venerable tool for manipulating IP addresses, networks, & interfaces from shell scripts. There is a subtool in busybox, but it does not support everything the upstream tool [1] supports. [1] https://gitlab.com/ipcalc/ipcalc Signed-off-by: Derrick Lyndon Pallas <derrick@meter.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/ipcalc/0002-Include-stdarg-for-va_list.patch')
-rw-r--r--package/ipcalc/0002-Include-stdarg-for-va_list.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/ipcalc/0002-Include-stdarg-for-va_list.patch b/package/ipcalc/0002-Include-stdarg-for-va_list.patch
new file mode 100644
index 0000000000..9261ce383c
--- /dev/null
+++ b/package/ipcalc/0002-Include-stdarg-for-va_list.patch
@@ -0,0 +1,29 @@
+From 7795c02fb1e0f5fdbdf949007e52684c590235d4 Mon Sep 17 00:00:00 2001
+From: Derrick Lyndon Pallas <derrick@meter.com>
+Date: Wed, 14 Oct 2020 18:40:38 +0000
+Subject: [PATCH] Include stdarg for va_list
+
+While several function signatures use va_list, stdarg was never included.
+This fixes that.
+
+Signed-off-by: Derrick Lyndon Pallas <derrick@meter.com>
+---
+ ipcalc.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ipcalc.h b/ipcalc.h
+index 0e81320..a220dc5 100644
+--- a/ipcalc.h
++++ b/ipcalc.h
+@@ -20,6 +20,8 @@
+ #ifndef _IPCALC_H
+ #define _IPCALC_H
+
++#include <stdarg.h> /* for va_list */
++
+ #if defined(USE_GEOIP)
+ void geo_ip_lookup(const char *ip, char **country, char **ccode, char **city, char **coord);
+ int geo_setup(void);
+--
+2.28.0
+