Browse Source

[master] fixed a build failure on freebsd8/g++: we need to include Python.h
before everything else as requested in
http://docs.python.org/py3k/extending/extending.html#a-simple-example

JINMEI Tatuya 14 years ago
parent
commit
1440e71559
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/dns/python/tsigerror_python.cc

+ 2 - 0
src/lib/dns/python/tsigerror_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>