summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:00:00 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:00:00 +0000
commit41b6caf4a956cd9d6032aafa87cc75ac7c94b6a5 (patch)
treed1aaa3d34d22db913ff202aa6bf6eadd21602319 /apt-pkg/contrib
parent1e8167a643bcbdf2433ae531442b456ca6fdb6ee (diff)
Test for timegm in configure.
Author: doogie Date: 2002-11-22 07:15:23 GMT Test for timegm in configure.
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/strutl.cc10
1 files changed, 8 insertions, 2 deletions
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 <errno.h>
#include <stdarg.h>
+#include "config.h"
+
using namespace std;
/*}}}*/
@@ -712,7 +714,11 @@ static int MonthConv(char *Month)
Contributed by Roger Beeman <beeman@cisco.com>, with the help of
Mark Baushke <mdb@cisco.com> 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;