Python header workaround

This commit is contained in:
Daniel P. Berrange
2008-04-18 18:31:32 +00:00
parent f41ba90c18
commit b11f2be30e
2 changed files with 11 additions and 0 deletions

View File

@@ -9,6 +9,11 @@
#include <config.h>
/* Horrible kludge to work around even more horrible name-space pollution
* via Python.h. That file includes /usr/include/python2.5/pyconfig*.h,
* which has over 180 autoconf-style HAVE_* definitions. Shame on them. */
#undef HAVE_PTHREAD_H
#include "libvirt_wrap.h"
PyObject *