diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-07 21:14:41 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-11-07 21:15:24 +0100 |
commit | 45316ada568cb0962417ba4b68727d35ee0d049d (patch) | |
tree | 77c62af39d0cb9f161756928efe1730d15315bab /dev-libs/libspt | |
parent | dev-python/pydantic: Bump to 2.10.0_beta1 (diff) | |
download | gentoo-45316ada568cb0962417ba4b68727d35ee0d049d.tar.gz gentoo-45316ada568cb0962417ba4b68727d35ee0d049d.tar.bz2 gentoo-45316ada568cb0962417ba4b68727d35ee0d049d.zip |
dev-libs/libspt: fix compilation with musl
Closes: https://bugs.gentoo.org/895050
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-libs/libspt')
-rw-r--r-- | dev-libs/libspt/files/libspt-gettimeofday.patch | 14 | ||||
-rw-r--r-- | dev-libs/libspt/libspt-1.1-r4.ebuild | 3 |
2 files changed, 16 insertions, 1 deletions
diff --git a/dev-libs/libspt/files/libspt-gettimeofday.patch b/dev-libs/libspt/files/libspt-gettimeofday.patch new file mode 100644 index 000000000000..fde0f009aa2a --- /dev/null +++ b/dev-libs/libspt/files/libspt-gettimeofday.patch @@ -0,0 +1,14 @@ + +See https://bugs.gentoo.org/895050 + +diff '--color=auto' -ruN libspt-1.1.orig/sptagent.c libspt-1.1/sptagent.c +--- libspt-1.1.orig/sptagent.c 2024-11-07 21:12:10.902407126 +0100 ++++ libspt-1.1/sptagent.c 2024-11-07 21:12:03.434285665 +0100 +@@ -5,6 +5,7 @@ + #include "sptprivate.h" + #include <stdio.h> + #include <sys/stat.h> ++#include <sys/time.h> + #include <grp.h> + #include <pwd.h> + #include <time.h> diff --git a/dev-libs/libspt/libspt-1.1-r4.ebuild b/dev-libs/libspt/libspt-1.1-r4.ebuild index 5e381b2ef84e..52475a23099b 100644 --- a/dev-libs/libspt/libspt-1.1-r4.ebuild +++ b/dev-libs/libspt/libspt-1.1-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -23,6 +23,7 @@ PATCHES=( "${FILESDIR}/${PN}-gentoo.patch" "${FILESDIR}/${PN}-glibc-2.30.patch" "${FILESDIR}/${PN}-rpc.patch" + "${FILESDIR}/${PN}-gettimeofday.patch" ) src_prepare() { |