summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2023-07-02 18:16:12 -0700
committerMichael Forney <mforney@mforney.org>2023-07-08 11:38:45 -0700
commit15dc20adcb57daf7ac5c2519a5111b44e20e9d51 (patch)
tree3787a2bb471db8e990265576ca436e6102669d4f /pkg
parent95f5ebe0dd4eea0d1d90dea0b5afab1e22529ba6 (diff)
acpid: Fix build with musl 1.2.4
Diffstat (limited to 'pkg')
-rw-r--r--pkg/acpid/patch/0006-Remove-use-of-LFS64.patch27
-rw-r--r--pkg/acpid/ver2
2 files changed, 28 insertions, 1 deletions
diff --git a/pkg/acpid/patch/0006-Remove-use-of-LFS64.patch b/pkg/acpid/patch/0006-Remove-use-of-LFS64.patch
new file mode 100644
index 00000000..b88a7101
--- /dev/null
+++ 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
index eb5de51e..7a356fe2 100644
--- a/pkg/acpid/ver
+++ b/pkg/acpid/ver
@@ -1 +1 @@
-2.0.33 r0
+2.0.34 r1