From f98ca7804a8d9f108356e882fc16fbed824df976 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 11 May 2015 15:19:09 +0200 Subject: [PATCH] at: define __isleap when needed. --- srcpkgs/at/patches/isleap.patch | 13 +++++++++++++ srcpkgs/at/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/at/patches/isleap.patch diff --git a/srcpkgs/at/patches/isleap.patch b/srcpkgs/at/patches/isleap.patch new file mode 100644 index 00000000000..726e23f5034 --- /dev/null +++ b/srcpkgs/at/patches/isleap.patch @@ -0,0 +1,13 @@ +--- parsetime.y.orig 2015-05-11 15:16:53.018305563 +0200 ++++ parsetime.y 2015-05-11 15:17:22.820153470 +0200 +@@ -6,6 +6,10 @@ + #include "parsetime.h" + #include "panic.h" + ++#ifndef __isleap ++#define __isleap(year) ((year)%4 == 0 && ((year)%100 != 0 || (year)%400 == 0)) ++#endif ++ + #define YYDEBUG 1 + + struct tm exectm; diff --git a/srcpkgs/at/template b/srcpkgs/at/template index 44210708cb8..f6645f4e125 100644 --- a/srcpkgs/at/template +++ b/srcpkgs/at/template @@ -1,7 +1,7 @@ # Template file for 'at' pkgname=at version=3.1.16 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-jobdir=/var/spool/atd --with-atspool=/var/spool/atd --sbindir=/usr/bin --with-daemon_username=at --with-daemon_groupname=at