Dash:
[t2.git] / package / multimedia / tvtime / hotfix-glibc.patch
bloba12651725f459b259bac2652caf33a5c88c78bc9
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../tvtime/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -Naur tvtime-1.0.2.org/src/xmltv.c tvtime-1.0.2/src/xmltv.c
18 --- tvtime-1.0.2.org/src/xmltv.c 2009-07-02 21:48:49.426191088 +0200
19 +++ tvtime-1.0.2/src/xmltv.c 2009-07-02 21:50:20.842066085 +0200
20 @@ -118,9 +118,9 @@
21 typedef struct {
22 const char *code;
23 const char *name;
24 -} locale_t;
25 +} tvtime_locale_t;
27 -static locale_t locale_table[] = {
28 +static tvtime_locale_t locale_table[] = {
29 {"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"},
30 {"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"},
31 {"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"},
32 @@ -168,7 +168,7 @@
33 {"XH", "Xhosa"}, {"YO", "Yoruba"}, {"ZH", "Chinese"},
34 {"ZU", "Zulu"} };
36 -const int num_locales = sizeof( locale_table ) / sizeof( locale_t );
37 +const int num_locales = sizeof( locale_table ) / sizeof( tvtime_locale_t );
39 /**
40 * Timezone parsing code based loosely on the algorithm in