aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftype-time.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-30 10:10:03 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-30 10:10:03 +0000
commite6f24ee9515c746b91136f9dc3efc3d40afdab9b (patch)
tree6796a6316344e48dd654dc265ef54da479b3ca65 /epan/ftypes/ftype-time.c
parent7bd0d9a4f705dc0538683f9bcd6971e464cd4e50 (diff)
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
Diffstat (limited to 'epan/ftypes/ftype-time.c')
-rw-r--r--epan/ftypes/ftype-time.c14
1 files changed, 13 insertions, 1 deletions
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 <gerald@ethereal.com>
@@ -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 <time.h>
#include <ftypes-int.h>