commit: 15dc20adcb57daf7ac5c2519a5111b44e20e9d51
parent 95f5ebe0dd4eea0d1d90dea0b5afab1e22529ba6
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 2 Jul 2023 18:16:12 -0700
acpid: Fix build with musl 1.2.4
Diffstat:
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/pkg/acpid/patch/0006-Remove-use-of-LFS64.patch b/pkg/acpid/patch/0006-Remove-use-of-LFS64.patch
@@ -0,0 +1,27 @@
+From 28084c052c3d487e97fb16c99b02e2d02607ddd5 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 2 Jul 2023 18:13:27 -0700
+Subject: [PATCH] Remove use of LFS64
+
+---
+ sock.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sock.c b/sock.c
+index 9e04501..3121fb7 100644
+--- a/sock.c
++++ b/sock.c
+@@ -54,8 +54,8 @@ int non_root_clients;
+ static int
+ isfdtype(int fd, int fdtype)
+ {
+- struct stat64 st;
+- if (fstat64(fd, &st) != 0)
++ struct stat st;
++ if (fstat(fd, &st) != 0)
+ return -1;
+ return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
+ }
+--
+2.37.3
+
diff --git a/pkg/acpid/ver b/pkg/acpid/ver
@@ -1 +1 @@
-2.0.33 r0
+2.0.34 r1