packages: tvtime/tvtime-gcc.patch - fix local 'locale_t' definition with th...

pluto pluto at pld-linux.org
Wed Jan 20 21:07:45 CET 2010


Author: pluto                        Date: Wed Jan 20 20:07:45 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix local 'locale_t' definition with this one from /usr/include/xlocale.h.

---- Files affected:
packages/tvtime:
   tvtime-gcc.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/tvtime/tvtime-gcc.patch
diff -u packages/tvtime/tvtime-gcc.patch:1.1 packages/tvtime/tvtime-gcc.patch:1.2
--- packages/tvtime/tvtime-gcc.patch:1.1	Sat Feb 17 00:45:35 2007
+++ packages/tvtime/tvtime-gcc.patch	Wed Jan 20 21:07:39 2010
@@ -55,3 +55,26 @@
  #include "tomsmocomp/TomsMoCompAll.inc"
  #undef  IS_SSE
  #undef  SSE_TYPE
+--- tvtime-1.0.2/src/xmltv.c.orig	2004-09-26 18:40:01.000000000 +0200
++++ tvtime-1.0.2/src/xmltv.c	2010-01-20 19:25:00.239975523 +0100
+@@ -118,9 +118,9 @@
+ typedef struct {
+     const char *code;
+     const char *name;
+-} locale_t;
++} locale_s;
+ 
+-static locale_t locale_table[] = {
++static locale_s locale_table[] = {
+     {"AA", "Afar"},           {"AB", "Abkhazian"},      {"AF", "Afrikaans"},
+     {"AM", "Amharic"},        {"AR", "Arabic"},         {"AS", "Assamese"},
+     {"AY", "Aymara"},         {"AZ", "Azerbaijani"},    {"BA", "Bashkir"},
+@@ -168,7 +168,7 @@
+     {"XH", "Xhosa"},          {"YO", "Yoruba"},         {"ZH", "Chinese"},
+     {"ZU", "Zulu"} };
+ 
+-const int num_locales = sizeof( locale_table ) / sizeof( locale_t );
++const int num_locales = sizeof( locale_table ) / sizeof( locale_s );
+ 
+ /**
+  * Timezone parsing code based loosely on the algorithm in
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tvtime/tvtime-gcc.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list