I've made my own makefile for a target that isn't supported by OpenSSL (Open Watcom for Win32 to be exact).
I'm wondering about the define in e.g. crypto/des/des_opts.c: #if !defined(OPENSSL_SYS_MSDOS) && (!defined(OPENSSL_SYS_VMS) || ... #define TIMES #endif That assumption is IMHO way to optimistic because neither Watcom nor MingW have "struct tms". A macro should be tested against compiler and not the system it's targeting. I suggest defining something like this in opensslconf.h.in: #if defined(_unix) || defined(__MINGW32__) || defined(_WATCOMC__) || \ defined(OPENSSL_SYS_VMS) || defined(__DECC) .. etc. #define HAVE_STRUCT_TIMEB #elif && !defined(OPENSSL_SYS_MACOSX) #define HAVE_STRUCT_TMS #endif #if defined(HAVE_STRUCT_TMS) typedef struct tms OPENSSL_time; #define GETTIME(t) times(t) #define TIME_HEADER <sys/times.h> #elif defined(HAVE_STRUCT_TIMEB) typedef struct timeb OPENSSL_time; #define GETTIME(t) ftime(t) #define TIME_HEADER <sys/timeb.h> #else #error Help, No way to get time !?. #endif Should be no need to include <sys/types.h> before TIME_HEADER. It's already in e_os.h, right? Maybe 'HAVE_STRUCT_xx' should be added to the configure process, AFAICS it doesn't test for those headers. Just my 0.02 Euro. --gv ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]