From e6f24ee9515c746b91136f9dc3efc3d40afdab9b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 30 Jan 2002 10:10:03 +0000 Subject: Alas, on Solaris, defining _XOPEN_SOURCE causes some things not in the X/Open specs *not* to be defined, so we also have to define __EXTENSIONS__. XXX - can we just define __USE_XOPEN, and not define _XOPEN_SOURCE? Is that sufficient to get "strptime()" declared on all platforms? svn path=/trunk/; revision=4629 --- epan/ftypes/ftype-time.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'epan/ftypes/ftype-time.c') diff --git a/epan/ftypes/ftype-time.c b/epan/ftypes/ftype-time.c index 06d8756be9..25c7f3d7b3 100644 --- a/epan/ftypes/ftype-time.c +++ b/epan/ftypes/ftype-time.c @@ -1,5 +1,5 @@ /* - * $Id: ftype-time.c,v 1.13 2002/01/29 22:57:31 gram Exp $ + * $Id: ftype-time.c,v 1.14 2002/01/30 10:10:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -36,6 +36,18 @@ #endif #define __USE_XOPEN +/* + * Defining _XOPEN_SOURCE is needed on some platforms, e.g. platforms + * using glibc, to expand the set of things system header files define. + * + * Unfortunately, on other platforms, such as some versions of Solaris, + * it *reduces* that set as well, e.g. causing "struct timeval" not + * to be defined. + * + * So we define __EXTENSIONS__ so that "struct timeval" is defined. + */ +#define __EXTENSIONS__ + #include #include -- cgit v1.2.3