commit:     45316ada568cb0962417ba4b68727d35ee0d049d
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  7 20:14:41 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Nov  7 20:15:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45316ada

dev-libs/libspt: fix compilation with musl

Closes: https://bugs.gentoo.org/895050
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 dev-libs/libspt/files/libspt-gettimeofday.patch | 14 ++++++++++++++
 dev-libs/libspt/libspt-1.1-r4.ebuild            |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)

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() {

Reply via email to