From 093cec72e7f7793d55fa1547cadb6655104feb5e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 May 2019 11:43:26 +0200 Subject: src: replace IPTABLES_VERSION by PACKAGE_VERSION The IPTABLES_VERSION C macro replicates the PACKAGE_VERSION C macro (both have the same definition, "@PACKAGE_VERSION@"). Since IPTABLES_VERSION, being located in internal.h, is not exposed to downstream users in any way, it can just be replaced by PACKAGE_VERSION, which saves a configure-time file substitution. This goes towards eliminating unnecessary rebuilds after rerunning ./configure. Signed-off-by: Jan Engelhardt Signed-off-by: Florian Westphal --- iptables/iptables-save.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables/iptables-save.c') diff --git a/iptables/iptables-save.c b/iptables/iptables-save.c index 826cb1e4..c7251e35 100644 --- a/iptables/iptables-save.c +++ b/iptables/iptables-save.c @@ -5,6 +5,7 @@ * This code is distributed under the terms of GNU GPL v2 * */ +#include "config.h" #include #include #include @@ -90,7 +91,7 @@ static int do_output(struct iptables_save_cb *cb, const char *tablename) time_t now = time(NULL); printf("# Generated by %s v%s on %s", - xt_params->program_name, IPTABLES_VERSION, ctime(&now)); + xt_params->program_name, PACKAGE_VERSION, ctime(&now)); printf("*%s\n", tablename); /* Dump out chain names first, -- cgit v1.2.3