Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/13540)
@@ -20,7 +20,7 @@
#include "cmp_mock_srv.h"
/* tweaks needed due to missing unistd.h on Windows */
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__BORLANDC__)
# define access _access
#endif
#ifndef F_OK
@@ -50,7 +50,7 @@ static int WIN32_rename(const char *from, const char *to);
# include <conio.h>
-#if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32)
+#if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32) || defined(__BORLANDC__)
# define _kbhit kbhit
@@ -1,5 +1,5 @@
# Auxiliary program source
-IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
+IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}]
# It's called 'init', but doesn't have much 'init' in it...
$AUXLIBAPPSSRC=win32_init.c
ENDIF
@@ -5,7 +5,7 @@
# be useful here.
#
# Auxiliary program source (copied from ../apps/build.info)
$AUXLIBAPPSSRC=../apps/lib/win32_init.c
@@ -16,7 +16,9 @@
#ifdef _WIN32
# include <direct.h>
# define DIRSEP "/\\"
-# define chdir _chdir
+# ifndef __BORLANDC__
+# define chdir _chdir
+# endif
# define DIRSEP_PRESERVE 0
#elif !defined(OPENSSL_NO_POSIX_IO)
# include <unistd.h>
@@ -19,7 +19,7 @@
#include "platform.h" /* From libapps */
# define strdup _strdup