From 147b9e8d5299ccc6c51cdf48ed7495267ad845db Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Tue, 29 Jan 2002 22:57:31 +0000 Subject: Use: #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 500 #endif #define __USE_XOPEN #include to get strptime() declared in time.h on various systems. I hope this helps more than it hurts. svn path=/trunk/; revision=4624 --- text2pcap.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'text2pcap.c') diff --git a/text2pcap.c b/text2pcap.c index 46ec3673df..17b43d2338 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -6,7 +6,7 @@ * * (c) Copyright 2001 Ashok Narayanan * - * $Id: text2pcap.c,v 1.11 2002/01/23 08:35:17 guy Exp $ + * $Id: text2pcap.c,v 1.12 2002/01/29 22:57:30 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -85,7 +85,18 @@ #include #include #include + +/* + * Just make sure we include the prototype for strptime as well + * (needed for glibc 2.2) + */ +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 500 +#endif +#define __USE_XOPEN + #include + #include #ifdef HAVE_UNISTD_H # include -- cgit v1.2.1