diff options
| author | Michael Forney <mforney@mforney.org> | 2023-07-02 18:16:12 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2023-07-08 11:38:45 -0700 |
| commit | 15dc20adcb57daf7ac5c2519a5111b44e20e9d51 (patch) | |
| tree | 3787a2bb471db8e990265576ca436e6102669d4f /pkg/acpid/patch | |
| parent | 95f5ebe0dd4eea0d1d90dea0b5afab1e22529ba6 (diff) | |
acpid: Fix build with musl 1.2.4
Diffstat (limited to 'pkg/acpid/patch')
| -rw-r--r-- | pkg/acpid/patch/0006-Remove-use-of-LFS64.patch | 27 |
1 files changed, 27 insertions, 0 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 + |
