Hello all,

OpenSSL 1.0.0 beta 4 fails to compile on Borland (C++ Builder 2006) due to
some missing definitions in e_os.h. The patch below fixes the problem with
no apparent side-effects.

It appears to be no longer possible to use assembler code with Borland as
the linker fails when reading NASM produced object files.

John Staniforth

======================================================================================================

*** D:\openssl\1.0.0-b4\original\e_os.h 2009-08-26 15:13:43.000000000 -0000
--- D:\openssl\1.0.0-b4\borland\e_os.h 2009-11-10 20:43:30.000000000 -0000
***************
*** 346,357 ****
--- 346,359 ----
 #  if defined (__BORLANDC__)
 #    define _setmode setmode
 #    define _O_TEXT O_TEXT
 #    define _O_BINARY O_BINARY
 #    define _int64 __int64
 #    define _kbhit kbhit
+ #    define _timeb timeb
+ #    define _open  open
 #  endif

 #  define EXIT(n) exit(n)
 #  define LIST_SEPARATOR_CHAR ';'
 #  ifndef X_OK
 #    define X_OK 0

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

Reply via email to