aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch')
-rw-r--r--testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch b/testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch
deleted file mode 100644
index 6e925b33894..00000000000
--- a/testing/kitty/fix-ppc64le-build-ioctl-with-musl.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-kitty was breaking when building in ppc64le using musl, because ioctl() is defined
-as ioctl(int, int) in musl and mosh is using TIOCSWINSZ macro as parameter. This was
-triggering a gcc warning and make the build fail.
-
-This patch does an explicit integer conversion in TIOCSWINSZ, as no bits get
-lost.
-
-
---- a/kitty/child-monitor.c
-+++ b/kitty/child-monitor.c
-@@ -435,7 +435,11 @@
- static inline bool
- pty_resize(int fd, struct winsize *dim) {
- while(true) {
-+#if defined(__powerpc64__) && (!defined(__GLIBC__) && !defined(__UCLIBC__))
-+ if (ioctl(fd, (int) TIOCSWINSZ, dim) == -1) {
-+#else
- if (ioctl(fd, TIOCSWINSZ, dim) == -1) {
-+#endif
- if (errno == EINTR) continue;
- if (errno != EBADF && errno != ENOTTY) {
- log_error("Failed to resize tty associated with fd: %d with error: %s", fd, strerror(errno));