X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fmktime.c;h=5d4373d48df32df84575873a5b4470558901fd9b;hb=refs%2Ftags%2Fupstream%2F2.5.1;hp=8aebb02acb1e2aa53ff09f24d7c9deb4e2b75444;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/common-src/mktime.c b/common-src/mktime.c index 8aebb02..5d4373d 100644 --- a/common-src/mktime.c +++ b/common-src/mktime.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. */ /*static char *sccsid = "from: @(#)ctime.c 5.26 (Berkeley) 2/23/91";*/ -/*static char *rcsid = "$Id: mktime.c,v 1.4 1998/03/18 10:00:49 amcore Exp $";*/ +/*static char *rcsid = "$Id: mktime.c,v 1.5 2006/05/25 01:47:12 johnfranks Exp $";*/ /* * This implementation of mktime is lifted straight from the NetBSD (BSD 4.4) @@ -60,6 +60,8 @@ * by hand. Sorry about that. */ +#include "amanda.h" + #ifndef DSTMINUTES #define DSTMINUTES 60 #endif @@ -80,11 +82,6 @@ #define TM_YEAR_BASE 1900 #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) -#include -#include - -extern time_t time(); - static int mon_lengths[2][MONSPERYEAR] = { { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }