diff options
| -rw-r--r-- | meta-oe/recipes-graphics/directfb/directfb.inc | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/directfb/directfb.inc b/meta-oe/recipes-graphics/directfb/directfb.inc index 4d38632e25..54aeb06aa9 100644 --- a/meta-oe/recipes-graphics/directfb/directfb.inc +++ b/meta-oe/recipes-graphics/directfb/directfb.inc | |||
| @@ -24,6 +24,7 @@ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.g | |||
| 24 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ | 24 | file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ |
| 25 | file://0001-os-linux-Fix-build-when-__NR_futex-is-not-available.patch \ | 25 | file://0001-os-linux-Fix-build-when-__NR_futex-is-not-available.patch \ |
| 26 | file://0001-include-libgen.h-for-basename.patch \ | 26 | file://0001-include-libgen.h-for-basename.patch \ |
| 27 | file://0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch \ | ||
| 27 | " | 28 | " |
| 28 | 29 | ||
| 29 | S = "${WORKDIR}/DirectFB-${PV}" | 30 | S = "${WORKDIR}/DirectFB-${PV}" |
diff --git a/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch b/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch new file mode 100644 index 0000000000..574bba0bc7 --- /dev/null +++ b/meta-oe/recipes-graphics/directfb/directfb/0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 18f4eca291cabf93d87e7c9051268d9c385b8f37 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 20 May 2024 18:23:06 -0700 | ||
| 4 | Subject: [PATCH] inputdrivers: Correct the signature of bind() call on musl | ||
| 5 | systems | ||
| 6 | |||
| 7 | Its flagged with GCC14 | ||
| 8 | |||
| 9 | ../../../DirectFB-1.7.7/inputdrivers/linux_input/linux_input.c:1551:27: error: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 10 | 1551 | rt = bind(socket_fd, &sock_addr, | ||
| 11 | | ^~~~~~~~~~ | ||
| 12 | | | | ||
| 13 | | struct sockaddr_un * | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | --- | ||
| 18 | inputdrivers/linux_input/linux_input.c | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/inputdrivers/linux_input/linux_input.c b/inputdrivers/linux_input/linux_input.c | ||
| 22 | index 03deebc..207f5a5 100644 | ||
| 23 | --- a/inputdrivers/linux_input/linux_input.c | ||
| 24 | +++ b/inputdrivers/linux_input/linux_input.c | ||
| 25 | @@ -1548,7 +1548,7 @@ udev_hotplug_EventThread(DirectThread *thread, void * hotplug_data) | ||
| 26 | "/org/kernel/udev/monitor", | ||
| 27 | sizeof(sock_addr.sun_path) - 1); | ||
| 28 | |||
| 29 | - rt = bind(socket_fd, &sock_addr, | ||
| 30 | + rt = bind(socket_fd, (struct sockaddr *)&sock_addr, | ||
| 31 | sizeof(sock_addr.sun_family)+1+strlen(&sock_addr.sun_path[1])); | ||
| 32 | if (rt < 0) { | ||
| 33 | D_PERROR( "DirectFB/linux_input: bind() failed: %s\n", | ||
| 34 | -- | ||
| 35 | 2.45.1 | ||
| 36 | |||
