0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/dbus/dbus-dbus-sysdeps-unix.c.patch
Tee KOBAYASHI 233fff39d5 dbus: Do not use close_range
which is disallowed by seccomp.
2022-09-26 18:44:07 +09:00

13 lines
474 B
Diff

--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -144,7 +144,8 @@
#endif /* Solaris */
-#if defined(__linux__) && defined(__NR_close_range) && !defined(HAVE_CLOSE_RANGE)
+#if defined(__linux__) && defined(__NR_close_range) && !defined(HAVE_CLOSE_RANGE) && \
+ !defined(__ANDROID__)
/* The kernel headers are new enough to have the close_range syscall,
* but glibc isn't new enough to have the syscall wrapper, so call the
* syscall directly. */