From b11f2be30e23cd18c770fe121ef4e2569c0963b7 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 18 Apr 2008 18:31:32 +0000 Subject: [PATCH] Python header workaround --- ChangeLog | 6 ++++++ python/types.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index d2494ab779..8bb5e98b3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Apr 18 14:30:12 EST 2008 Daniel P. Berrange + + Work around Python.h name-space pollution. + * python/types.c (HAVE_PTHREAD_H): #undef. + Without this, we'd get a redefinition warning. + Fri Apr 18 20:07:12 CEST 2008 Jim Meyering Work around Python.h name-space pollution. diff --git a/python/types.c b/python/types.c index 6857c106fa..e4bad8aa78 100644 --- a/python/types.c +++ b/python/types.c @@ -9,6 +9,11 @@ #include +/* 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 * -- 2.39.5