diff options
-rw-r--r-- | AUTHORS | 4 | ||||
-rw-r--r-- | epan/ftypes/ftype-time.c | 11 |
2 files changed, 11 insertions, 4 deletions
@@ -76,8 +76,8 @@ Joerg Mayer <jmayer@loplof.de> { NTP fixes DHCP support for Intel PXEclient DHCP requests Support for "-N" flag enabling selected forms of name resolution - Changes to structure initializations not to initialize some but - not all members + Changes to structure initializations to initialize all members + Define __USE_XOPEN in files that use "strptime()" } Martin Maciaszek <fastjack@i-s-o.net> { 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> |