summaryrefslogtreecommitdiff
path: root/sys-fs/lde/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fs/lde/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/lde/files')
-rw-r--r--sys-fs/lde/files/lde-2.6.1-no-shadowing.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-fs/lde/files/lde-2.6.1-no-shadowing.patch b/sys-fs/lde/files/lde-2.6.1-no-shadowing.patch
new file mode 100644
index 000000000000..586bbf3e8768
--- /dev/null
+++ b/sys-fs/lde/files/lde-2.6.1-no-shadowing.patch
@@ -0,0 +1,39 @@
+rename daylight to avoid shadowing the daylight function and pissing off gcc
+
+http://bugs.gentoo.org/141881
+
+--- lde/src/swiped/cnews/getdate.y
++++ lde/src/swiped/cnews/getdate.y
+@@ -24,7 +24,7 @@
+
+ static int timeflag, dateflag, dayflag, relflag;
+ static time_t relsec, relmonth;
+- static int hh, mm, ss, merid, daylight;
++ static int hh, mm, ss, merid, foo_daylight;
+ static int dayord, dayreq;
+ static int month, day, year;
+ static int ourzone;
+@@ -68,19 +68,19 @@
+ {hh = $1; mm = $3; merid = $4;}
+ | NUMBER ':' NUMBER NUMBER
+ {hh = $1; mm = $3; merid = 24;
+- daylight = STANDARD; ourzone = $4%100 + 60*$4/100;}
++ foo_daylight = STANDARD; ourzone = $4%100 + 60*$4/100;}
+ | NUMBER ':' NUMBER ':' NUMBER
+ {hh = $1; mm = $3; ss = $5; merid = 24;}
+ | NUMBER ':' NUMBER ':' NUMBER MERIDIAN
+ {hh = $1; mm = $3; ss = $5; merid = $6;}
+ | NUMBER ':' NUMBER ':' NUMBER NUMBER
+ {hh = $1; mm = $3; ss = $5; merid = 24;
+- daylight = STANDARD; ourzone = $6%100 + 60*$6/100;};
++ foo_daylight = STANDARD; ourzone = $6%100 + 60*$6/100;};
+
+ zone: ZONE
+- {ourzone = $1; daylight = STANDARD;}
++ {ourzone = $1; foo_daylight = STANDARD;}
+ | DAYZONE
+- {ourzone = $1; daylight = DAYLIGHT;};
++ {ourzone = $1; foo_daylight = DAYLIGHT;};
+
+ dyspec: DAY
+ {dayord = 1; dayreq = $1;}