As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@

This commit is contained in:
purplerain 2024-05-26 03:08:12 +00:00
parent 83a0aaf92c
commit 9a3af55370
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
59377 changed files with 98673 additions and 4712155 deletions

View file

@ -0,0 +1,25 @@
Avoid syscall(2) usage
Index: lib/libv4l-mplane/libv4l-mplane.c
--- lib/libv4l-mplane/libv4l-mplane.c.orig
+++ lib/libv4l-mplane/libv4l-mplane.c
@@ -35,13 +35,18 @@
#include "libv4l-plugin.h"
+#ifdef CONFIG_SYS_WRAPPER
+#define SYS_IOCTL ioctl
+#define SYS_READ read
+#define SYS_WRITE write
+#else
#define SYS_IOCTL(fd, cmd, arg) \
syscall(SYS_ioctl, (int)(fd), (unsigned long)(cmd), (void *)(arg))
#define SYS_READ(fd, buf, len) \
syscall(SYS_read, (int)(fd), (void *)(buf), (size_t)(len));
#define SYS_WRITE(fd, buf, len) \
syscall(SYS_write, (int)(fd), (const void *)(buf), (size_t)(len));
-
+#endif
#if HAVE_VISIBILITY
#define PLUGIN_PUBLIC __attribute__ ((visibility("default")))