qingy: add missing patch.
This commit is contained in:
parent
80c3ba7177
commit
69d7f809e8
2 changed files with 36 additions and 1 deletions
35
srcpkgs/qingy/patches/fix-musl.patch
Normal file
35
srcpkgs/qingy/patches/fix-musl.patch
Normal file
|
@ -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 <time.h>
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue