summarylogtreecommitdiffstats
path: root/tvtime-1.0.2-locale_t-fix.patch
diff options
context:
space:
mode:
authorparkerlreed2015-08-10 09:43:53 -0400
committerparkerlreed2015-08-10 09:43:53 -0400
commit6d49dfefbc1b4d86a51b61fe5524dd821ab355e6 (patch)
tree1691767d6fb9e4f62d51477ecc3a0190cb338241 /tvtime-1.0.2-locale_t-fix.patch
downloadaur-6d49dfefbc1b4d86a51b61fe5524dd821ab355e6.tar.gz
Initial import
Diffstat (limited to 'tvtime-1.0.2-locale_t-fix.patch')
-rw-r--r--tvtime-1.0.2-locale_t-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/tvtime-1.0.2-locale_t-fix.patch b/tvtime-1.0.2-locale_t-fix.patch
new file mode 100644
index 000000000000..7aaa53da136a
--- /dev/null
+++ b/tvtime-1.0.2-locale_t-fix.patch
@@ -0,0 +1,23 @@
+--- tvtime-1.0.2.orig/src/xmltv.c 2004-09-26 18:40:01.000000000 +0200
++++ tvtime-1.0.2/src/xmltv.c 2009-05-31 18:08:13.228709960 +0200
+@@ -118,9 +118,9 @@ const int num_timezones = sizeof( date_m
+ typedef struct {
+ const char *code;
+ const char *name;
+-} locale_t;
++} tv_locale_t;
+
+-static locale_t locale_table[] = {
++static tv_locale_t locale_table[] = {
+ {"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"},
+ {"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"},
+ {"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"},
+@@ -168,7 +168,7 @@ static locale_t locale_table[] = {
+ {"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( tv_locale_t );
+
+ /**
+ * Timezone parsing code based loosely on the algorithm in