[PATCH] mac os x: don't compile failing example program on 32 bit mac os x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]