X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1e8167a643bcbdf2433ae531442b456ca6fdb6ee..41b6caf4a956cd9d6032aafa87cc75ac7c94b6a5:/apt-pkg/contrib/strutl.cc diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index f8fbf3212..b37cdd1bd 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: strutl.cc,v 1.45 2002/04/26 05:52:27 jgg Exp $ +// $Id: strutl.cc,v 1.46 2002/11/22 07:15:23 doogie Exp $ /* ###################################################################### String Util - Some useful string functions. @@ -33,6 +33,8 @@ #include #include +#include "config.h" + using namespace std; /*}}}*/ @@ -712,7 +714,11 @@ static int MonthConv(char *Month) Contributed by Roger Beeman , with the help of Mark Baushke and the rest of the Gurus at CISCO. */ -#ifndef __USE_MISC // glib sets this + +/* Turned it into an autoconf check, because GNU is not the only thing which + can provide timegm. -- 2002-09-22, Joel Baker */ + +#ifndef HAVE_TIMEGM // Now with autoconf! static time_t timegm(struct tm *t) { time_t tl, tb;