diff options
Diffstat (limited to 'external/unbound/libunbound/python/libunbound.i')
-rw-r--r-- | external/unbound/libunbound/python/libunbound.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/unbound/libunbound/python/libunbound.i b/external/unbound/libunbound/python/libunbound.i index 1bef79f22..3c0e45b7d 100644 --- a/external/unbound/libunbound/python/libunbound.i +++ b/external/unbound/libunbound/python/libunbound.i @@ -60,7 +60,11 @@ %} //%include "doc.i" +#if PY_MAJOR_VERSION >= 3 +%include "file_py3.i" // python 3 FILE * +#else %include "file.i" +#endif %feature("docstring") strerror "Convert error value to a human readable string." |