summaryrefslogtreecommitdiff
path: root/system/at/10-parsetime.y-1.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:21:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:21:28 -0500
commitb71fe05dce49b3453b5b556be023b831344a62a8 (patch)
treee8c17ecca61918d1dd4a0c10f1d38043737b474c /system/at/10-parsetime.y-1.patch
parent33ab6f745fc7bcbc62a04445ec26bed721aabff4 (diff)
downloadpackages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.gz
packages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.bz2
packages-b71fe05dce49b3453b5b556be023b831344a62a8.tar.xz
packages-b71fe05dce49b3453b5b556be023b831344a62a8.zip
system/at: add for POSIX
Diffstat (limited to 'system/at/10-parsetime.y-1.patch')
-rw-r--r--system/at/10-parsetime.y-1.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/at/10-parsetime.y-1.patch b/system/at/10-parsetime.y-1.patch
new file mode 100644
index 000000000..3eb0549e3
--- /dev/null
+++ b/system/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 {