Browse Source

[trac915] added Python.h at the head of included files as required in
the python API (failing this will cause build errors on some systems)

JINMEI Tatuya 14 years ago
parent
commit
23d63caf0c
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/lib/dns/python/rcode_python.cc
  2. 2 0
      src/lib/dns/python/tsigrecord_python.cc

+ 2 - 0
src/lib/dns/python/rcode_python.cc

@@ -12,6 +12,8 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#include <Python.h>
+
 #include <exceptions/exceptions.h>
 
 #include <dns/rcode.h>

+ 2 - 0
src/lib/dns/python/tsigrecord_python.cc

@@ -12,6 +12,8 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
+#include <Python.h>
+
 #include <string>
 #include <stdexcept>