Control: tag -1 + patch Christoph Egger <christ...@christoph-egger.org> writes: > Moving the > > %include <ldns/rr.h> > > right after the > > %include "ldns_rr.i" > > in ldns.i yields a version of `ldns` that is at least importable!
diff --git a/contrib/python/ldns.i b/contrib/python/ldns.i index 35e076f..562b3ec 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 <ldns/rr.h> + %inline %{ int Python_str_Check(PyObject *o) { #if PY_VERSION_HEX>=0x03000000 @@ -168,7 +170,6 @@ int Python_str_Check(PyObject *o) { %include <ldns/packet.h> %include <ldns/rdata.h> %include <ldns/resolver.h> - %include <ldns/rr.h> %include <ldns/str2host.h> %include <ldns/tsig.h> %include <ldns/update.h> -- 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 Debian Developer | Lisp Hacker | CaCert Assurer