]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Cannot make symbol for define with same name
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 14 Jun 2021 10:00:04 +0000 (12:00 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 14 Jun 2021 10:00:04 +0000 (12:00 +0200)
util.c

diff --git a/util.c b/util.c
index 11f876d6334006dc18a8d84b9533f82e2994ba15..807a99e2308d3bf8f511e135a0ca997ac1504e0c 100644 (file)
--- a/util.c
+++ b/util.c
@@ -312,6 +312,9 @@ ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result)
 #endif
 }
 
+#ifdef ldns_serial_arithmitics_gmtime_r
+#undef ldns_serial_arithmitics_gmtime_r
+#endif
 /* alias function because of previously used wrong spelling */
 struct tm *
 ldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result)