From a7514f30fa9de7341544deb3dc592c00bacef2ba Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 30 Aug 2016 01:57:45 +0200 Subject: [PATCH] Move ldns/rr.h import up a bit Newer versions of SWIG seem to be more sensitive to ordering here. Fixes import errors where LDNS_RR_* constants are used before they are actually initialized. --- contrib/python/ldns.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/python/ldns.i b/contrib/python/ldns.i index 35e076f8..562b3ec9 100644 --- a/contrib/python/ldns.i +++ b/contrib/python/ldns.i @@ -139,6 +139,8 @@ uint32_t ldns_read_timeval_usec(struct timeval* t) { %include "ldns_resolver.i" %include "ldns_rr.i" +%include + %inline %{ int Python_str_Check(PyObject *o) { #if PY_VERSION_HEX>=0x03000000 @@ -168,7 +170,6 @@ int Python_str_Check(PyObject *o) { %include %include %include - %include %include %include %include -- 2.47.3