Ethereal-dev: Re: [Ethereal-dev] text2pcap.c: strptime

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>
Date: Tue, 29 Jan 2002 15:40:48 -0600
On Tue, 29 Jan 2002 15:24:59 Guy Harris wrote:
>

Thanks for the lengthy research.

> 
> For now, I'd be inclined to, in all Ethereal source files that use
> "strptime()", if _XOPEN_SOURCE isn't defined, define it as 500; the
> files in question include "epan/ftypes/ftype-time.c" and "text2pcap.c".
> 

Unfortunately, this alone doesn't work for glibc.  glibc requires
the use of __USE_XOPEN in order to declare strptime().
(I tried it). It looks like we should defien both _XOPEN_SOURCE
and __USE_XOPEN.

Just an aside, glibc's time.h also makes use of __USE_XOPEN2K,
which may be for more modern features. This is not related to
the strptime issue at hand, however.

--gilbert