On Wed, Sep 13, 2000, Theodore Hope wrote: > > I think to needed "-lcompat option" on some *BSD* system. > Perhaps the OpenSSL team could incorporate thel ogic > to include "-lcompat" as part of the 'config' in the next > beta release? Thanks, Why do you want to use old stuff? Just make sure ftime() isn't used, i.e., avoid defining TIMEB in apps/speeds.c and use TIMES instead. BTW: is this really required? #if !defined(TIMES) && !defined(TIMEB) #error "It seems neither struct tms nor struct timeb is supported in this platform!" #endif So on FreeBSD it uses USE_TOD and TIMEB? #if defined(__FreeBSD__) # define USE_TOD #elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC)) # define TIMES #endif It seems to work fine if I remove the requirement (because USE_TOD is defined then), so maybe it should be: #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) how about BSD/OS (__bsdi__)? See attached patch for a my proposal.
--- speed.c.orig Mon Sep 11 05:42:00 2000 +++ speed.c Wed Sep 13 09:07:29 2000 @@ -82,12 +82,11 @@ #include <openssl/rand.h> #include <openssl/err.h> -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) # define USE_TOD #elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC)) # define TIMES -#endif -#if !defined(_UNICOS) +#elif !defined(_UNICOS) # define TIMEB #endif @@ -115,8 +114,8 @@ #include <sys/timeb.h> #endif -#if !defined(TIMES) && !defined(TIMEB) -#error "It seems neither struct tms nor struct timeb is supported in this platform!" +#if !defined(TIMES) && !defined(TIMEB) && !defined(USE_TOD) +#error "It seems neither struct tms nor struct timeb nor getrusage is supported in +this platform!" #endif #if defined(sun) || defined(__ultrix)
