qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix missing event_notifier_init_fd() function on Mac OS X
@ 2016-03-30 16:35 Programmingkid
  2016-03-30 16:38 ` Paolo Bonzini
  0 siblings, 1 reply; 7+ messages in thread
From: Programmingkid @ 2016-03-30 16:35 UTC (permalink / raw)
  To: qemu-devel qemu-devel; +Cc: Paolo Bonzini, Peter Maydell

Remove macro that prevents event_notifier_init_fd() function from being compiled on Mac OS X.

This patch fixes this error:

Undefined symbols for architecture x86_64:
  "_event_notifier_init_fd", referenced from:
      _process_msg in ivshmem.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [qemu-system-ppc] Error 1
make: *** [subdir-ppc-softmmu] Error 2


Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
---
 util/event_notifier-posix.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c
index e150301..11cef87 100644
--- a/util/event_notifier-posix.c
+++ b/util/event_notifier-posix.c
@@ -21,7 +21,6 @@
 #include <sys/eventfd.h>
 #endif
 
-#ifdef CONFIG_EVENTFD
 /*
  * Initialize @e with existing file descriptor @fd.
  * @fd must be a genuine eventfd object, emulation with pipe won't do.
@@ -31,7 +30,6 @@ void event_notifier_init_fd(EventNotifier *e, int fd)
     e->rfd = fd;
     e->wfd = fd;
 }
-#endif
 
 int event_notifier_init(EventNotifier *e, int active)
 {
-- 
2.7.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-14 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 16:35 [Qemu-devel] [PATCH] fix missing event_notifier_init_fd() function on Mac OS X Programmingkid
2016-03-30 16:38 ` Paolo Bonzini
2016-04-08 11:25   ` Markus Armbruster
2016-04-14 18:24     ` Programmingkid
2016-04-14 18:39       ` Peter Maydell
2016-04-14 18:47         ` Programmingkid
2016-04-14 18:58           ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).