diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-01-29 22:57:31 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-01-29 22:57:31 +0000 |
commit | 147b9e8d5299ccc6c51cdf48ed7495267ad845db (patch) | |
tree | d03a88be9e8d97a07121a8cbaec118d59fe8e5dd /epan/ftypes/ftype-time.c | |
parent | 3c1fb071eb4ad77b0c2966383d11a86539f317ec (diff) |
Use:
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#define __USE_XOPEN
#include <time.h>
to get strptime() declared in time.h on various systems. I hope
this helps more than it hurts.
svn path=/trunk/; revision=4624
Diffstat (limited to 'epan/ftypes/ftype-time.c')
-rw-r--r-- | epan/ftypes/ftype-time.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/ftypes/ftype-time.c b/epan/ftypes/ftype-time.c index ebb584296a..06d8756be9 100644 --- a/epan/ftypes/ftype-time.c +++ b/epan/ftypes/ftype-time.c @@ -1,5 +1,5 @@ /* - * $Id: ftype-time.c,v 1.12 2001/12/28 21:30:34 guy Exp $ + * $Id: ftype-time.c,v 1.13 2002/01/29 22:57:31 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -31,9 +31,10 @@ * Just make sure we include the prototype for strptime as well * (needed for glibc 2.2) */ -#ifndef __USE_XOPEN -#define __USE_XOPEN +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 500 #endif +#define __USE_XOPEN #include <time.h> |