This addresses a compilation failure issue reported last year on
OS X:

  https://www.redhat.com/archives/libvir-list/2009-May/msg00166.html

In testing here, the compilation only fails on 32 bit OS X, but works
on 64 bit, even when using exact same compile and linking flags.

This commit surgically disables compilation of this one example program
on 32 bit Mac OS X (only).  Compilation still occurs, with a working
executable produced, on 64 bit Mac OS X.
---
 examples/domain-events/events-c/event-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/examples/domain-events/events-c/event-test.c 
b/examples/domain-events/events-c/event-test.c
index 74eabba..3dff13b 100644
--- a/examples/domain-events/events-c/event-test.c
+++ b/examples/domain-events/events-c/event-test.c
@@ -5,7 +5,7 @@
 #include <string.h>
 #include <signal.h>
 
-#if HAVE_SYS_POLL_H
+#if HAVE_SYS_POLL_H && !(defined(__i386__) && defined(__APPLE__) && 
defined(__MACH__))
 # include <sys/types.h>
 # include <sys/poll.h>
 # include <libvirt/libvirt.h>
-- 
1.7.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to