Ethereal-dev: [Ethereal-dev] Win32 compile error in 'epan'

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Mike Frisch <mfrisch@xxxxxxxxxx>
Date: Fri, 26 Oct 2001 13:57:17 -0400
I searched the mailing list archives and did not find any reference to
this Win32 compilation error:

ftype-time.c
.\ftype-time.c(173) : error C4013: 'strptime' undefined; assuming extern
returning int
.\ftype-time.c(173) : error C4047: '=' : 'char *' differs in levels of
indirection from 'int '

The patch is as follows:

Index: config.h.win32
===================================================================
RCS file: /cvsroot/ethereal/epan/config.h.win32,v
retrieving revision 1.8
diff -u -r1.8 config.h.win32
--- config.h.win32      2001/08/21 06:39:16     1.8
+++ config.h.win32      2001/10/26 17:56:48
@@ -83,6 +83,7 @@
 #define HAVE_DIRECT_H          1
 #define HAVE_IO_H              1
 #define NEED_GETOPT_H          1
+#define NEED_STRPTIME_H        1
 #define snprintf               _snprintf
 #define vsnprintf              _vsnprintf
 #define strcasecmp             stricmp

Mike.