summaryrefslogtreecommitdiff
path: root/opt/acpid/fix-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'opt/acpid/fix-musl.patch')
-rw-r--r--opt/acpid/fix-musl.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/opt/acpid/fix-musl.patch b/opt/acpid/fix-musl.patch
new file mode 100644
index 0000000..ee32eb0
--- /dev/null
+++ b/opt/acpid/fix-musl.patch
@@ -0,0 +1,18 @@
+From 6c4c7636f9629914d85531ea1dfe6abc275164ac Mon Sep 17 00:00:00 2001
+From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org>
+Date: Wed, 25 Oct 2023 15:23:20 +0000
+Subject: [PATCH] community/acpid: fix lfs64 usage
+
+--- a/sock.c
++++ b/sock.c
+@@ -54,8 +54,8 @@
+ 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);
+ }