@@ -5,4 +5,5 @@ stub-obj-y += fdset-get-fd.o
stub-obj-y += fdset-remove-fd.o
stub-obj-y += get-fd.o
stub-obj-y += set-fd-handler.o
+stub-obj-y += signalfd.o
stub-obj-$(CONFIG_WIN32) += fd-register.o
@@ -9,3 +9,11 @@ int qemu_set_fd_handler2(int fd,
{
abort();
}
+
+int qemu_set_fd_handler(int fd,
+ IOHandler *fd_read,
+ IOHandler *fd_write,
+ void *opaque)
+{
+ abort();
+}
new file mode 100644
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "compatfd.h"
+
+bool qemu_signalfd_available(void)
+{
+ abort();
+}
These functions are needed by libqblock, so add them into stubs. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> --- stubs/Makefile.objs | 1 + stubs/set-fd-handler.c | 8 ++++++++ stubs/signalfd.c | 7 +++++++ 3 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 stubs/signalfd.c