mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 16:12:58 -05:00
6633f86b49
* gnu/packages/tv.scm, gnu/packages/patches/tvtime-gcc41.patch, gnu/packages/patches/tvtime-pngoutput.patch, gnu/packages/patches/tvtime-videodev2.patch, gnu/packages/patches/tvtime-xmltv.patch: New files. * gnu-system.am (GNU_SYSTEM_MODULES): Add package. (dist_patch_DATA): Add patches.
28 lines
1,005 B
Diff
28 lines
1,005 B
Diff
Fix compilation error: conflicting types for 'locale_t'.
|
|
|
|
This is an excerpt from the debian patch ...
|
|
http://http.debian.net/debian/pool/main/t/tvtime/tvtime_1.0.2-14.diff.gz
|
|
|
|
--- tvtime-1.0.2.orig/src/xmltv.c
|
|
+++ tvtime-1.0.2/src/xmltv.c
|
|
@@ -118,9 +118,9 @@
|
|
typedef struct {
|
|
const char *code;
|
|
const char *name;
|
|
-} locale_t;
|
|
+} tvtime_locale_t;
|
|
|
|
-static locale_t locale_table[] = {
|
|
+static tvtime_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 @@
|
|
{"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( tvtime_locale_t );
|
|
|
|
/**
|
|
* Timezone parsing code based loosely on the algorithm in
|