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

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

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Thu, 4 Aug 2005 17:27:21 -0400
Oops, yes, xml_lexer.c.  

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Ross Carlson
Sent: Thursday, August 04, 2005 5:13 PM
To: 'Ethereal development'
Subject: RE: [Ethereal-dev] 0.10.12 Win32 compile errors due
to#include<unistd.h> not wrapped


Chris

Do you mean:

plugins/xml/xml_lexer.c  ?  

This (lexer) and the others you mention have been the ones that I have
seen
issues with.


Ross
 
-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Maynard, Chris
Sent: Thursday, August 04, 2005 4:50 PM
To: Ethereal development
Subject: [Ethereal-dev] 0.10.12 Win32 compile errors due to
#include<unistd.h> not wrapped

I have run into problems compiling 0.10.12 on Windows due to the
unistd.h header file being unconditionally included, rather than wrapped
around the following:

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

The 3 files are:
epan/radius_dict.c
plugins/mate/mate_parser.c
plugins/xml/xml_parser.c

However, all 3 of these files are auto-generated, and I'm not exactly
sure where the unistd.h file gets included from.  For now, I can
successfully compile by manually wrapping the header, but I suspect that
others will encounter this as well.  Perhaps someone could take a look
at this, or let me know what silly thing I'm doing wrong?  I ran a full
clean before compiling, so I don't think it's due to any extraneous
left-over files.

- Chris



-----------------------------------------
This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you are
not the intended recipient (or authorized to receive for the
recipient), please contact the sender by reply email and delete all
copies of this message. Also, email is susceptible to data corruption,
interception, tampering, unauthorized amendment and viruses. We only
send and receive emails on the basis that we are not liable for any
such corruption, interception, tampering, amendment or viruses or any
consequence thereof.