]> xenbits.xensource.com Git - libvirt.git/commitdiff
Work around Python.h name-space pollution.
authorJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 18:07:40 +0000 (18:07 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Apr 2008 18:07:40 +0000 (18:07 +0000)
* python/libvir.c (HAVE_PTHREAD_H): #undef.
Without this, we'd get a redefinition warning.

ChangeLog
python/libvir.c

index 7e1d3b6ad9b5dd072e39880a2d6e877c5fb795a6..d2494ab7794ad5233390f755db73a5e68fb6a68a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Apr 18 20:07:12 CEST 2008 Jim Meyering <meyering@redhat.com>
+
+       Work around Python.h name-space pollution.
+       * python/libvir.c (HAVE_PTHREAD_H): #undef.
+       Without this, we'd get a redefinition warning.
+
 Fri Apr 18 11:26:24 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
        * tests/Makefile.am: Add abs_srcdir and abs_builddir to test
index 0ca2dca1425cbab470a12e5175709fd3e9c69383..8258cc24dee1ca0055b7ca119122711de9874870 100644 (file)
@@ -4,13 +4,18 @@
  *           entry points where an automatically generated stub is
  *           unpractical
  *
- * Copyright (C) 2005, 2007 Red Hat, Inc.
+ * Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
  *
  * Daniel Veillard <veillard@redhat.com>
  */
 
 #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 <Python.h>
 #include "libvirt/libvirt.h"
 #include "libvirt/virterror.h"