diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-28 22:00:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-28 22:00:05 +0100 |
commit | 9c602d90d61cea9fe83c596c68a99e383ee15f73 (patch) | |
tree | bca80b41af9c142cee7e07f14622dff065e60932 /net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch | |
parent | cf7630078a53ff74b245b148bd722994068e28f9 (diff) |
gentoo auto-resync : 28:10:2022 - 22:00:04
Diffstat (limited to 'net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch')
-rw-r--r-- | net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch b/net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch new file mode 100644 index 000000000000..058d2f2d5ddb --- /dev/null +++ b/net-misc/vmnet/files/vmnet-0.4-Fix-build-with-Clang-16.patch @@ -0,0 +1,33 @@ +From 6c4416e8c266c7dc10eb3f3af8f913ace1da84e2 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 28 Oct 2022 17:16:17 +0100 +Subject: [PATCH] Fix build with Clang 16 + +Bug: https://bugs.gentoo.org/871171 +--- a/vmnet.c ++++ b/vmnet.c +@@ -49,12 +49,15 @@ + * to set up the SLIP connection and parse/generated SLIP packets. + */ + ++#define _GNU_SOURCE + #include <errno.h> + #include <fcntl.h> + #include <pwd.h> + #include <signal.h> + #include <stdio.h> + #include <stdlib.h> ++#include <string.h> ++#include <unistd.h> + #include <termios.h> + #include <sys/ioctl.h> + #include <sys/select.h> +@@ -251,7 +254,7 @@ void tty_setup(slipconn *sc) + } + } + +-int slip_setup(slipconn *sc) ++void slip_setup(slipconn *sc) + { + int disc, sencap = 0; + |