-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
musl uses an `int` instead of a `unsigend long` for the ioctl function | ||
prototype, contrary to glibc, since POSIX mandates the former. This | ||
causes a spurious error on ppc64le which can be silenced by casting to | ||
int explicitly. | ||
|
||
See https://www.openwall.com/lists/musl/2020/01/20/2 | ||
|
||
diff -upr a/src/ccache/storage/local/LocalStorage.cpp b/src/ccache/storage/local/LocalStorage.cpp | ||
--- a/src/ccache/storage/local/LocalStorage.cpp 2024-06-30 20:46:01.000000000 +0200 | ||
+++ b/src/ccache/storage/local/LocalStorage.cpp 2024-07-03 16:29:39.073705276 +0200 | ||
@@ -264,7 +264,7 @@ clone_file(const std::string& src, const | ||
} | ||
} | ||
|
||
- if (ioctl(*dest_fd, FICLONE, *src_fd) != 0) { | ||
+ if (ioctl(*dest_fd, (int)FICLONE, *src_fd) != 0) { | ||
throw core::Error(strerror(errno)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters