mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Remove rsync openat patches
This commit is contained in:
parent
7f8859812f
commit
e96734e910
@ -1,6 +1,6 @@
|
||||
[source]
|
||||
tar = "https://download.samba.org/pub/rsync/src/rsync-3.4.1.tar.gz"
|
||||
patches = ["redox.patch"]
|
||||
blake3 = "e1cfdd51a1a89a49e73f8fa730a4321392fe4a29533c0979c2c09c7ce3808b6f"
|
||||
|
||||
[build]
|
||||
template = "configure"
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
diff -ruwN source/rsync.h source-new/rsync.h
|
||||
--- source/rsync.h 2025-01-16 02:21:54.000000000 +0700
|
||||
+++ source-new/rsync.h 2025-09-08 12:18:06.427647717 +0700
|
||||
@@ -483,6 +483,21 @@
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __redox__
|
||||
+
|
||||
+// no sys/sysmacros.h, probably no problem
|
||||
+#include <sys/types.h>
|
||||
+#define major(dev) (0)
|
||||
+#define minor(dev) (0)
|
||||
+#define makedev(maj, min) (0)
|
||||
+
|
||||
+// no openat yet
|
||||
+#undef O_NOFOLLOW
|
||||
+#undef O_DIRECTORY
|
||||
+#undef AT_FDCWD
|
||||
+
|
||||
+#endif
|
||||
+
|
||||
#ifdef MAKEDEV_TAKES_3_ARGS
|
||||
#define MAKEDEV(devmajor,devminor) makedev(0,devmajor,devminor)
|
||||
#else
|
||||
Loading…
Reference in New Issue
Block a user