aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/vdr/files/cplusplus.patch
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2009-12-12 10:17:52 +0100
committerHenning Heinold <heinold@inf.fu-berlin.de>2010-01-03 21:49:16 +0100
commit97e1b707d6504343f02e683f49eb2cb6db2cc091 (patch)
treeea7a96f7cba463e67ef03cd814ddac8bcba41283 /recipes/vdr/files/cplusplus.patch
parent326feb69a3e8ecb150236980a1697d5e7ba829a1 (diff)
downloadopenembedded-97e1b707d6504343f02e683f49eb2cb6db2cc091.tar.gz
vdr: introduce vdr to oe
* packaging started by Paul Menzel * packaging finished by Henning Heinold Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
Diffstat (limited to 'recipes/vdr/files/cplusplus.patch')
-rw-r--r--recipes/vdr/files/cplusplus.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes/vdr/files/cplusplus.patch b/recipes/vdr/files/cplusplus.patch
new file mode 100644
index 0000000000..74e4731e7e
--- /dev/null
+++ b/recipes/vdr/files/cplusplus.patch
@@ -0,0 +1,54 @@
+Index: vdr-1.7.10/tools.c
+===================================================================
+--- vdr-1.7.10.orig/tools.c 2010-01-03 16:34:41.162295450 +0100
++++ vdr-1.7.10/tools.c 2010-01-03 17:07:03.318358420 +0100
+@@ -8,9 +8,12 @@
+ */
+
+ #include "tools.h"
+-#include <ctype.h>
++#include <cctype>
+ #include <dirent.h>
+-#include <errno.h>
++#include <cerrno>
++#include <cstdarg>
++#include <ctime>
++
+ extern "C" {
+ #ifdef boolean
+ #define HAVE_BOOLEAN
+@@ -18,11 +21,10 @@
+ #include <jpeglib.h>
+ #undef boolean
+ }
+-#include <stdarg.h>
++
+ #include <stdlib.h>
+ #include <sys/time.h>
+ #include <sys/vfs.h>
+-#include <time.h>
+ #include <unistd.h>
+ #include <utime.h>
+ #include "i18n.h"
+@@ -484,7 +486,7 @@
+ {
+ if (!FileName)
+ return NULL;
+- char *TargetName = canonicalize_file_name(FileName);
++ char *TargetName = realpath(FileName,NULL);
+ if (!TargetName) {
+ if (errno == ENOENT) // file doesn't exist
+ TargetName = strdup(FileName);
+Index: vdr-1.7.10/tools.h
+===================================================================
+--- vdr-1.7.10.orig/tools.h 2010-01-03 16:30:20.441906815 +0100
++++ vdr-1.7.10/tools.h 2010-01-03 16:30:57.168575048 +0100
+@@ -24,6 +24,8 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+
++#include <cstdarg>
++
+ typedef unsigned char uchar;
+
+ extern int SysLogLevel;