ports: Add libuv port
This commit is contained in:
33
ports/libuv/patches/0003-use-statvfs.patch
Normal file
33
ports/libuv/patches/0003-use-statvfs.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
diff -ruN libuv-v1.51.0/src/unix/fs.c libuv-1.51.0-x86_64/src/unix/fs.c
|
||||
--- libuv-v1.51.0/src/unix/fs.c 2025-04-25 12:50:27.000000000 +0300
|
||||
+++ libuv-1.51.0-x86_64/src/unix/fs.c 2025-07-23 17:14:28.118310214 +0300
|
||||
@@ -77,7 +77,8 @@
|
||||
defined(__MVS__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(__HAIKU__) || \
|
||||
- defined(__QNX__)
|
||||
+ defined(__QNX__) || \
|
||||
+ defined(__banan_os__)
|
||||
# include <sys/statvfs.h>
|
||||
#else
|
||||
# include <sys/statfs.h>
|
||||
@@ -683,7 +684,8 @@
|
||||
defined(__MVS__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(__HAIKU__) || \
|
||||
- defined(__QNX__)
|
||||
+ defined(__QNX__) || \
|
||||
+ defined(__banan_os__)
|
||||
struct statvfs buf;
|
||||
|
||||
if (0 != statvfs(req->path, &buf))
|
||||
@@ -705,7 +707,8 @@
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(__HAIKU__) || \
|
||||
- defined(__QNX__)
|
||||
+ defined(__QNX__) || \
|
||||
+ defined(__banan_os__)
|
||||
stat_fs->f_type = 0; /* f_type is not supported. */
|
||||
#else
|
||||
stat_fs->f_type = buf.f_type;
|
||||
Reference in New Issue
Block a user