Add support for UWIN, a Unix-like environment on top of Windows.
PR: 62
This commit is contained in:
parent
1f5a2a4dde
commit
c3347d0561
@ -471,6 +471,9 @@ my %table=(
|
|||||||
# and its library files in util/pl/*)
|
# and its library files in util/pl/*)
|
||||||
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
||||||
|
|
||||||
|
# UWIN
|
||||||
|
"UWIN", "cc:-DTERMIOS -DL_ENDIAN -O -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
||||||
|
|
||||||
# Cygwin
|
# Cygwin
|
||||||
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
"Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32",
|
||||||
"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared:::.dll",
|
||||||
|
@ -155,7 +155,7 @@ extern "C" {
|
|||||||
#define BN_BYTES 4
|
#define BN_BYTES 4
|
||||||
#define BN_BITS2 32
|
#define BN_BITS2 32
|
||||||
#define BN_BITS4 16
|
#define BN_BITS4 16
|
||||||
#ifdef WIN32
|
#ifdef _MSC_VER
|
||||||
/* VC++ doesn't like the LL suffix */
|
/* VC++ doesn't like the LL suffix */
|
||||||
#define BN_MASK (0xffffffffffffffffL)
|
#define BN_MASK (0xffffffffffffffffL)
|
||||||
#else
|
#else
|
||||||
|
@ -189,7 +189,7 @@ int des_enc_write(int fd,const void *buf,int len,des_key_schedule sched,
|
|||||||
des_cblock *iv);
|
des_cblock *iv);
|
||||||
char *des_fcrypt(const char *buf,const char *salt, char *ret);
|
char *des_fcrypt(const char *buf,const char *salt, char *ret);
|
||||||
char *des_crypt(const char *buf,const char *salt);
|
char *des_crypt(const char *buf,const char *salt);
|
||||||
#if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT)
|
#if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(_UWIN)
|
||||||
char *crypt(const char *buf,const char *salt);
|
char *crypt(const char *buf,const char *salt);
|
||||||
#endif
|
#endif
|
||||||
void des_ofb_encrypt(const unsigned char *in,unsigned char *out,int numbits,
|
void des_ofb_encrypt(const unsigned char *in,unsigned char *out,int numbits,
|
||||||
|
9
e_os.h
9
e_os.h
@ -114,11 +114,11 @@ extern "C" {
|
|||||||
# define MS_STATIC
|
# define MS_STATIC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(WIN32) && !defined(__CYGWIN32__)
|
#if defined(_WIN32) && !defined(WIN32) && !defined(__CYGWIN32__) && !defined(_UWIN)
|
||||||
# define WIN32
|
# define WIN32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(WIN32) || defined(WIN16)) && !defined(__CYGWIN32__)
|
#if (defined(WIN32) || defined(WIN16)) && !defined(__CYGWIN32__) && !defined(_UWIN)
|
||||||
# ifndef WINDOWS
|
# ifndef WINDOWS
|
||||||
# define WINDOWS
|
# define WINDOWS
|
||||||
# endif
|
# endif
|
||||||
@ -142,7 +142,8 @@ extern "C" {
|
|||||||
#define clear_sys_error() errno=0
|
#define clear_sys_error() errno=0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WINDOWS) && !defined(__CYGWIN32__)
|
#if defined(WINDOWS) && !defined(__CYGWIN32__) && !defined(_UWIN)
|
||||||
|
|
||||||
#define get_last_socket_error() WSAGetLastError()
|
#define get_last_socket_error() WSAGetLastError()
|
||||||
#define clear_socket_error() WSASetLastError(0)
|
#define clear_socket_error() WSASetLastError(0)
|
||||||
#define readsocket(s,b,n) recv((s),(b),(n),0)
|
#define readsocket(s,b,n) recv((s),(b),(n),0)
|
||||||
@ -183,7 +184,7 @@ extern "C" {
|
|||||||
# define NO_FP_API
|
# define NO_FP_API
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(WINDOWS) || defined(MSDOS)) && !defined(__CYGWIN32__)
|
#if (defined(WINDOWS) || defined(MSDOS)) && !defined(__CYGWIN32__) && !defined(_UWIN)
|
||||||
|
|
||||||
# ifndef S_IFDIR
|
# ifndef S_IFDIR
|
||||||
# define S_IFDIR _S_IFDIR
|
# define S_IFDIR _S_IFDIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user