aports/testing/libell/fix-WAIT_ANY-test-dbus.patch
2018-10-04 14:37:34 +00:00

45 lines
804 B
Diff

--- a/unit/test-dbus.c
+++ b/unit/test-dbus.c
@@ -32,6 +32,10 @@
#define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
static pid_t dbus_daemon_pid = -1;
static void start_dbus_daemon(void)
--- a/unit/test-dbus-message-fds.c
+++ b/unit/test-dbus-message-fds.c
@@ -37,6 +37,10 @@
#define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
static pid_t dbus_daemon_pid = -1;
static bool start_dbus_daemon(void)
--- a/unit/test-dbus-properties.c
+++ b/unit/test-dbus-properties.c
@@ -34,6 +34,10 @@
#define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
static pid_t dbus_daemon_pid = -1;
static bool start_dbus_daemon(void)