Ethereal-dev: Re: [Ethereal-dev] 0.10.12 Win32 compile errors due to #include <unistd.h> not w

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

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Thu, 4 Aug 2005 23:25:53 +0200
I don't compile ethereal on windows and rarely use it on that platform, but:

On Thu, Aug 04, 2005 at 04:50:10PM -0400, Maynard, Chris wrote:
> epan/radius_dict.c

This is wrapped by #ifdef __cplusplus
which shouldn't be defined as we are compiling with c and not c++

> plugins/mate/mate_parser.c

The wrapper is already there. And config.h is included before it.
No idea what's going wrong here.

> plugins/xml/xml_parser.c

You will probably want to run make distclean first, see the following
comment from plugins/xml/Makefile.nmake

# We remove the generated files with "distclean" because one of them,
# "xml_lexer.c", needs different #includes for UN*X and Windows
# (UN*X versions of Flex make it include <unistd.h>, but that's a
# UN*X-only header), so if you're going to build from source, you need
# to build "xml_lexer.c" from "xml_lexer.l" with Flex.
#
distclean: clean
        rm -f xml_lexer.c

 Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.