aboutsummaryrefslogtreecommitdiffstats
path: root/community/at/10-parsetime.y-1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/at/10-parsetime.y-1.patch')
-rw-r--r--community/at/10-parsetime.y-1.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/at/10-parsetime.y-1.patch b/community/at/10-parsetime.y-1.patch
new file mode 100644
index 0000000000..9e8a33234e
--- /dev/null
+++ b/community/at/10-parsetime.y-1.patch
@@ -0,0 +1,14 @@
+--- parsetime.orig.y
++++ parsetime.y
+@@ -17,6 +17,11 @@
+ extern int yylex();
+
+ int add_date(int number, int period);
++
++#ifndef __isleap
++#define __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
++#endif
++
+ %}
+
+ %union {