aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-18 01:42:24 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-18 01:42:24 +0000
commitc8554ff99aa8c573adde8afd44edbbd1806c47df (patch)
tree0d17da1d9ad3a8e5c67b5d273a89a711e6570586 /epan/ftypes
parentf15f06f1a4b929d9027c986e3ea000159b1ee047 (diff)
Define __USE_XOPEN in files that use "strptime()", from Joerg Mayer.
svn path=/trunk/; revision=3559
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-time.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-time.c b/epan/ftypes/ftype-time.c
index a11b0fb5b6..47b46fbd6c 100644
--- a/epan/ftypes/ftype-time.c
+++ b/epan/ftypes/ftype-time.c
@@ -1,10 +1,9 @@
/*
- * $Id: ftype-time.c,v 1.7 2001/06/02 06:21:14 guy Exp $
+ * $Id: ftype-time.c,v 1.8 2001/06/18 01:42:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 2001 Gerald Combs
- *
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -27,6 +26,14 @@
#include <ctype.h>
+/*
+ * Just make sure we include the prototype for strptime as well
+ * (needed for glibc 2.2)
+ */
+#ifndef __USE_XOPEN
+#define __USE_XOPEN
+#endif
+
#include <time.h>
#include <ftypes-int.h>