diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-18 19:48:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-18 19:48:47 +0100 |
commit | 1494784ae35c6fa7b6a92a80dea93265fc54ccd0 (patch) | |
tree | dbbb1b83e130750c3a55a4287c3a2ec2bbff7af8 /sys-apps/usermode-utilities/files | |
parent | ee74b33422f15493c315bdacf20da95d5b936d3c (diff) |
gentoo auto-resync : 18:06:2023 - 19:48:47
Diffstat (limited to 'sys-apps/usermode-utilities/files')
-rw-r--r-- | sys-apps/usermode-utilities/files/usermode-utilities-fix-memset.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-apps/usermode-utilities/files/usermode-utilities-fix-memset.patch b/sys-apps/usermode-utilities/files/usermode-utilities-fix-memset.patch new file mode 100644 index 000000000000..39c036ae52ba --- /dev/null +++ b/sys-apps/usermode-utilities/files/usermode-utilities-fix-memset.patch @@ -0,0 +1,44 @@ +Fix building with clang-16, as lot of functions from string.h (including +memset) couldn't be found. Resulting in error: call to undeclared library +function memset type error. +Bug: https://bugs.gentoo.org/898550 +--- a/port-helper/port-helper.c ++++ b/port-helper/port-helper.c +@@ -13,6 +13,7 @@ for read and write, and the console is functional. + #include <stdio.h> + #include <stdlib.h> + #include <signal.h> ++#include <string.h> + #include <errno.h> + #include <unistd.h> + #include <sys/ioctl.h> +--- a/uml_switch/port.c ++++ b/uml_switch/port.c +@@ -1,6 +1,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> ++#include <string.h> + #include <errno.h> + #include <sys/socket.h> + #include <sys/un.h> +--- a/uml_switch/uml_switch.c ++++ b/uml_switch/uml_switch.c +@@ -6,6 +6,7 @@ + #include <errno.h> + #include <stdlib.h> + #include <signal.h> ++#include <string.h> + #include <fcntl.h> + #include <stdint.h> + #include <sys/socket.h> +--- a/watchdog/uml_watchdog.c ++++ b/watchdog/uml_watchdog.c +@@ -2,6 +2,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <signal.h> ++#include <string.h> + #include <errno.h> + #include <sys/socket.h> + #include <sys/un.h> |