Subject: Re: mysqlcc broken by recent upgrade to mysql 4.1.x
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Chris Wareham <chriswareham@chriswareham.demon.co.uk>
List: tech-pkg
Date: 10/31/2004 17:38:04
Jaromir Dolecek wrote:
> 
> Which version of NetBSD do you use? It also seems the package
> uses incorrect _XOPEN_SOURCE define or doesn't include <time.h>, which
> is the reason it doesn't see definition of strptime().
> 

Changing the following two lines:

#define _XOPEN_SOURCE /* glibc2 needs this */
#include <time.h>

to:

#if 0
#define _XOPEN_SOURCE /* glibc2 needs this */
#include <time.h>
#else
#include <ctime>
#endif

Fixed the errors.

The build grinds to a halt further on, but the errors I'm now seeing
look far more straightforward.

Chris