=================================================================== RCS file: /cvs/mandoc/Attic/strings.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -p -r1.13 -r1.14 --- mandoc/Attic/strings.c 2009/02/21 21:00:06 1.13 +++ mandoc/Attic/strings.c 2009/02/23 12:45:19 1.14 @@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.13 2009/02/21 21:00:06 kristaps Exp $ */ +/* $Id: strings.c,v 1.14 2009/02/23 12:45:19 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -21,10 +21,14 @@ #include #include #include -#ifndef __OpenBSD__ +#ifdef __linux__ #include #endif +/* + * Convert scalars to and from string format. + */ + #include "private.h" #ifdef __linux__ @@ -128,9 +132,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: February 21 2009 $")) + if (xstrcmp(p, "$Mdocdate: February 23 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: February 21 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: February 23 2009 $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp)