diff --git a/srcpkgs/qingy/patches/fix-musl.patch b/srcpkgs/qingy/patches/fix-musl.patch new file mode 100644 index 00000000000..47d1a02b8d5 --- /dev/null +++ b/srcpkgs/qingy/patches/fix-musl.patch @@ -0,0 +1,35 @@ +--- ./src/libraries/misc.h.orig 2016-03-31 23:28:06.023869695 +0200 ++++ ./src/libraries/misc.h 2016-03-31 23:28:12.069869242 +0200 +@@ -30,6 +30,7 @@ + #endif + + #include "qingy_constants.h" ++#include + + /* Computes the integer part of the base 10 log */ + int int_log10(int n); +--- src/libraries/vt.c.orig 2016-03-31 23:33:35.641845025 +0200 ++++ src/libraries/vt.c 2016-03-31 23:33:49.739843970 +0200 +@@ -101,9 +101,9 @@ int switch_to_tty(int tty) + + if (!ttyname) return 0; + /* we set stdin, stdout and stderr to the new tty */ +- stdin = freopen(ttyname, "r", stdin); +- stdout = freopen(ttyname, "w", stdout); +- stderr = freopen(ttyname, "w", stderr); ++ freopen(ttyname, "r", stdin); ++ freopen(ttyname, "w", stdout); ++ freopen(ttyname, "w", stderr); + free(ttyname); + if (!stdin || !stdout || !stderr) return 0; + +@@ -205,7 +205,7 @@ void stderr_enable(int *vt) + + if (!ttyname) return; + +- stderr = fopen(ttyname, "w"); ++ freopen(ttyname, "w", stderr); + free(ttyname); + } + + diff --git a/srcpkgs/qingy/template b/srcpkgs/qingy/template index 4817b89bcf7..bc8547b2784 100644 --- a/srcpkgs/qingy/template +++ b/srcpkgs/qingy/template @@ -1,7 +1,7 @@ # Template file for 'qingy' pkgname=qingy version=1.0.0 -revision=19 +revision=20 lib32disabled=yes build_style=gnu-configure makedepends="ncurses-devel libressl-devel