mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
dbus: patch out the use of close_range
This commit is contained in:
parent
d5dee8ab55
commit
e94c9c1664
@ -1,6 +1,9 @@
|
||||
[source]
|
||||
tar = "https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz"
|
||||
blake3 = "b1d1f22858a8f04665e5dca29d194f892620f00fd3e3f4e89dd208e78868436e"
|
||||
patches = [
|
||||
"redox.patch",
|
||||
]
|
||||
|
||||
[build]
|
||||
dependencies = [
|
||||
|
||||
12
recipes/wip/services/dbus/redox.patch
Normal file
12
recipes/wip/services/dbus/redox.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ruwN source-old/dbus/dbus-sysdeps-unix.c source/dbus/dbus-sysdeps-unix.c
|
||||
--- source-old/dbus/dbus-sysdeps-unix.c 2025-02-27 09:29:06.000000000 -0700
|
||||
+++ source/dbus/dbus-sysdeps-unix.c 2025-10-30 10:32:21.000125207 -0600
|
||||
@@ -4981,7 +4981,7 @@
|
||||
void
|
||||
_dbus_fd_set_all_close_on_exec (void)
|
||||
{
|
||||
-#if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC)
|
||||
+#if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC) && !defined(__redox__)
|
||||
if (close_range (3, INT_MAX, CLOSE_RANGE_CLOEXEC) == 0)
|
||||
return;
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user