summaryrefslogtreecommitdiff
path: root/sys-power/acpid/files/acpid-2.0.34-lfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/acpid/files/acpid-2.0.34-lfs.patch')
-rw-r--r--sys-power/acpid/files/acpid-2.0.34-lfs.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-power/acpid/files/acpid-2.0.34-lfs.patch b/sys-power/acpid/files/acpid-2.0.34-lfs.patch
new file mode 100644
index 000000000000..0abca60af422
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.34-lfs.patch
@@ -0,0 +1,19 @@
+Since version 1.2.4 musl no longer enables legacy LFS interfaces as part
+of _GNU_SOURCE, and will remove them altogether in a future release [1].
+Just switch to the standard interfaces.
+
+[1] https://musl.libc.org/releases.html
+
+--- 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);
+ }