summaryrefslogtreecommitdiff
path: root/package/qingy
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-24 18:27:33 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-24 18:27:33 +0100
commit148249d08af2ef833175d3f9176c6709798d4a14 (patch)
treedc39146d700ae5a224c45885719a2bc8934bd7eb /package/qingy
parent18a6922a938023cb061b7cd9895412549cb17288 (diff)
parent826fae84981bf030b6bb9d20117a1a1634ba3334 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/qingy')
-rw-r--r--package/qingy/Makefile2
-rw-r--r--package/qingy/patches/patch-src_libraries_misc_h10
-rw-r--r--package/qingy/patches/patch-src_libraries_vt_c39
3 files changed, 50 insertions, 1 deletions
diff --git a/package/qingy/Makefile b/package/qingy/Makefile
index 381d252d8..4e095f2b2 100644
--- a/package/qingy/Makefile
+++ b/package/qingy/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= qingy
PKG_VERSION:= 1.0.0
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 1e0912655e240adfd0ce5ced30bbc685
PKG_DESCR:= a DirectFB getty replacement
PKG_SECTION:= misc
diff --git a/package/qingy/patches/patch-src_libraries_misc_h b/package/qingy/patches/patch-src_libraries_misc_h
new file mode 100644
index 000000000..22ee9c890
--- /dev/null
+++ b/package/qingy/patches/patch-src_libraries_misc_h
@@ -0,0 +1,10 @@
+--- qingy-1.0.0.orig/src/libraries/misc.h 2008-11-27 10:29:01.000000000 +0100
++++ qingy-1.0.0/src/libraries/misc.h 2014-01-20 07:38:44.000000000 +0100
+@@ -29,6 +29,7 @@
+ #include <config.h>
+ #endif
+
++#include <time.h>
+ #include "qingy_constants.h"
+
+ /* Computes the integer part of the base 10 log */
diff --git a/package/qingy/patches/patch-src_libraries_vt_c b/package/qingy/patches/patch-src_libraries_vt_c
new file mode 100644
index 000000000..84a9842a8
--- /dev/null
+++ b/package/qingy/patches/patch-src_libraries_vt_c
@@ -0,0 +1,39 @@
+--- qingy-1.0.0.orig/src/libraries/vt.c 2008-11-25 12:21:28.000000000 +0100
++++ qingy-1.0.0/src/libraries/vt.c 2014-01-20 07:53:43.000000000 +0100
+@@ -98,14 +98,15 @@ static int getfd()
+ int switch_to_tty(int tty)
+ {
+ char *ttyname = create_tty_name(tty);
++ FILE *_stdin, *_stdout, *_stderr;
+
+ 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);
++ _stdin = freopen(ttyname, "r", stdin);
++ _stdout = freopen(ttyname, "w", stdout);
++ _stderr = freopen(ttyname, "w", stderr);
+ free(ttyname);
+- if (!stdin || !stdout || !stderr) return 0;
++ if (!_stdin || !_stdout || !_stderr) return 0;
+
+ return 1;
+ }
+@@ -197,6 +198,7 @@ void stderr_disable(void)
+ void stderr_enable(int *vt)
+ {
+ char *ttyname;
++ FILE *_stderr;
+
+ if (!vt)
+ ttyname = create_tty_name(get_active_tty());
+@@ -205,7 +207,7 @@ void stderr_enable(int *vt)
+
+ if (!ttyname) return;
+
+- stderr = fopen(ttyname, "w");
++ _stderr = freopen(ttyname, "w", stderr);
+ free(ttyname);
+ }
+