aports/testing/at/10-parsetime.y-1.patch
msun 0fb032df23 testing/at: upgrade to 3.1.18
Version 3.1.18 is currently tagged as testing but seems to be working OK. SELinux support has been turned off on this build.
2016-03-22 10:25:38 +00:00

15 lines
250 B
Diff

--- 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 {