aboutsummaryrefslogtreecommitdiffstats
path: root/main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-04 08:18:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-04 08:18:12 +0000
commitcabcd60e34b01c6a3e7667cc56ee4b320c3541c8 (patch)
tree46903bc3f9a3f39309b6503e4e4e7928131464c2 /main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch
parentfe2c4a9704c9f2b15ff3e0947750ab2c9b85726a (diff)
downloadaports-cabcd60e34b01c6a3e7667cc56ee4b320c3541c8.tar.bz2
aports-cabcd60e34b01c6a3e7667cc56ee4b320c3541c8.tar.xz
main/qemu: upgrade to 2.1.0
Diffstat (limited to 'main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch')
-rw-r--r--main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch b/main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch
deleted file mode 100644
index a11df7a835..0000000000
--- a/main/qemu/0002-util-qemu-openpty-fix-build-with-musl-libc-by-includ.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 48fbea622a77f38a0fb33e862486d4c70eb8cf66 Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Tue, 29 Apr 2014 10:14:57 +0200
-Subject: [PATCH 2/6] util/qemu-openpty: fix build with musl libc by include
- termios.h as fallback
-
-Include termios.h as POSIX fallback when not glibc, bsd or solaris.
-POSIX says that termios.h should define struct termios and TCAFLUSH.
-http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html
-
-This fixes the following compile errors with musl libc:
-
-util/qemu-openpty.c: In function 'qemu_openpty_raw':
-util/qemu-openpty.c:112:20: error: storage size of 'tty' isn't known
- struct termios tty;
- ^
-...
-util/qemu-openpty.c:128:24: error: 'TCSAFLUSH' undeclared (first use in this function)
- tcsetattr(*aslave, TCSAFLUSH, &tty);
- ^
-
-Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
----
- util/qemu-openpty.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/util/qemu-openpty.c b/util/qemu-openpty.c
-index 4febfe9..4c53211 100644
---- a/util/qemu-openpty.c
-+++ b/util/qemu-openpty.c
-@@ -47,6 +47,8 @@
- #elif defined CONFIG_SOLARIS
- # include <termios.h>
- # include <stropts.h>
-+#else
-+# include <termios.h>
- #endif
-
- #ifdef __sun__
---
-1.9.2
-