diff options
author | Sam James <sam@gentoo.org> | 2023-04-22 18:01:06 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-22 18:01:06 +0100 |
commit | ecba6d4dcd645e58a0a5861f484f452b65f21eac (patch) | |
tree | 99a4a5ecda072a731f6737cfdcae735db5d23217 /dev-libs/libptytty | |
parent | dev-python/cfn-lint: Stabilize 0.76.2 x86, #904763 (diff) | |
download | gentoo-ecba6d4dcd645e58a0a5861f484f452b65f21eac.tar.gz gentoo-ecba6d4dcd645e58a0a5861f484f452b65f21eac.tar.bz2 gentoo-ecba6d4dcd645e58a0a5861f484f452b65f21eac.zip |
dev-libs/libptytty: fix w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libptytty')
-rw-r--r-- | dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch | 15 | ||||
-rw-r--r-- | dev-libs/libptytty/libptytty-2.0-r1.ebuild (renamed from dev-libs/libptytty/libptytty-2.0.ebuild) | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch b/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch new file mode 100644 index 000000000000..99b49e26e737 --- /dev/null +++ b/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch @@ -0,0 +1,15 @@ +http://lists.schmorp.de/pipermail/rxvt-unicode/2023q2/002652.html + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -95,7 +95,8 @@ check_function_exists(setreuid HAVE_SETREUID) + check_function_exists(setresuid HAVE_SETRESUID) + + check_c_source_compiles( +- "#include <stdlib.h> ++ "#define _XOPEN_SOURCE 500 ++ #include <stdlib.h> + + int main () + { + diff --git a/dev-libs/libptytty/libptytty-2.0.ebuild b/dev-libs/libptytty/libptytty-2.0-r1.ebuild index cfa4b8a6b1fc..6622e0666ff1 100644 --- a/dev-libs/libptytty/libptytty-2.0.ebuild +++ b/dev-libs/libptytty/libptytty-2.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,6 +15,7 @@ KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" PATCHES=( "${FILESDIR}"/${PN}-2.0-rundir.patch + "${FILESDIR}"/${PN}-2.0-configure-clang16.patch ) DOCS=( Changes README ) |