summaryrefslogtreecommitdiff
path: root/opt/acpid/fix-musl.patch
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/acpid/fix-musl.patch
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
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);
+ }