summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test-udev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c
index 2a25f2d9b0..4f21e6c2dd 100644
--- a/src/test/test-udev.c
+++ b/src/test/test-udev.c
@@ -34,6 +34,14 @@
#include "udev.h"
+#ifndef SYS_unshare
+#error "libc fails to set SYS_unshare: please file a bug report with eudev"
+#endif
+
+#ifndef unshare
+#define unshare(__X) syscall(SYS_unshare, __X)
+#endif
+
void udev_main_log(struct udev *udev, int priority,
const char *file, int line, const char *fn,
const char *format, va_list args) {}