diff options
| author | Sam James <sam@gentoo.org> | 2023-02-28 03:19:00 +0000 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2023-02-28 03:19:00 +0000 |
| commit | f70b4736f5aa8521c18c1ef39e5d3dcf6d592544 (patch) | |
| tree | fda0f52fc68a21f2232d9e3c5a2cd0e6f24bd167 /app-shells/bash/files | |
| parent | 509d54b8b3f926ed718bd97920b4bcc7e2238f41 (diff) | |
| download | gentoo-f70b4736f5aa8521c18c1ef39e5d3dcf6d592544.tar.gz gentoo-f70b4736f5aa8521c18c1ef39e5d3dcf6d592544.tar.bz2 gentoo-f70b4736f5aa8521c18c1ef39e5d3dcf6d592544.zip | |
app-shells/bash: backport clang 16 configure fix to 5.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-shells/bash/files')
| -rw-r--r-- | app-shells/bash/files/bash-5.1_p16-configure-clang16.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-5.1_p16-configure-clang16.patch b/app-shells/bash/files/bash-5.1_p16-configure-clang16.patch new file mode 100644 index 000000000000..8d77fbd968a7 --- /dev/null +++ b/app-shells/bash/files/bash-5.1_p16-configure-clang16.patch @@ -0,0 +1,37 @@ +https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00000.html) + +From 2cdf8b42885189b3cf7c47096b01f104e520546a Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 2 Feb 2023 05:43:37 +0000 +Subject: [PATCH] aclocal.m4: fix -Wimplicit-function-declaration in dup2 check + +dup2 requires a <unistd.h> include. Fixes the following when diffing config.log + when testing with a stricter compiler: +``` +-warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ++error: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +``` +--- aclocal.m4 ++++ aclocal.m4 +@@ -284,6 +284,9 @@ AC_CACHE_VAL(bash_cv_dup2_broken, + #include <sys/types.h> + #include <fcntl.h> + #include <stdlib.h> ++#ifdef HAVE_UNISTD_H ++#include <unistd.h> ++#endif + int + main() + { +--- configure ++++ configure +@@ -16990,6 +16990,9 @@ else + #include <sys/types.h> + #include <fcntl.h> + #include <stdlib.h> ++#ifdef HAVE_UNISTD_H ++#include <unistd.h> ++#endif + int + main() + { |
