I'm looking at the 0.9.7 version of that file, and the #include <unistd.h>
is inside something like "#if !defined(MSDOS) || defined(DJGPP)".  MSDOS
get's defined in e_os2.h for Windows builds, so this block of code should be
disabled.  Does it look to be the same for the source you have?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-openssl-dev@;openssl.org]On Behalf Of HOWARD,KEVIN
(HP-Seattle,ex1)
Sent: Saturday, 9 November 2002 5:49 AM
To: '[EMAIL PROTECTED]'
Subject: Reference to unistd.h in Windows build of OpenSSL 0.9.6g


When I attempt to do a VC++ compilation for a Win32 build of OpenSSL 0.9.6g
after running ms\do_ms, I am presented with an error, "Cannot open include
file: 'unistd.h'", for the file \crypto\engine\hw_aep.c (SEE CONSOLE OUTPUT
BELOW).

The include file, 'unistd.h', is not available for Windows platforms.  Is
this a bug in this version, should this file be excluded from my make, or is
there some other step I need to take to get a Win32 build?

Thanks,

Kevin Howard

----------------------------------------------------------------------------
-----
C:\Documents\PPU\OpenSSL\openssl-engine-0.9.6c>nmake -f ms\ntdll.mak

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

Building OpenSSL
        cl /Fotmp32dll\hw_aep.obj  -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox
/O2 /O
b2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32
/Fd
out32dll /GD -D_WINDLL -D_DLL  -c .\crypto\engine\hw_aep.c
hw_aep.c
.\crypto\engine\hw_aep.c(61) : fatal error C1083: Cannot open include file:
'uni
std.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
----------------------------------------------------------------------------
------


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to