The following patches are needed to build OpenSLL for NetBSD/i386 (both
OpenSLL 0.9.6 and the 20001021 snapshot.)

sysctl used to live in /usr/sbin, but has been moved to /sbin in the
NetBSD 1.5 release. But the absolute path should not be necessary, so
remove it.

--- config.bak  Wed Oct 11 03:00:11 2000
+++ config      Sat Oct 21 22:16:13 2000
@@ -168,7 +168,7 @@
         ;;
 
     NetBSD:*:*:*386*)
-        echo "`/usr/sbin/sysctl -n hw.model | sed 
's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
+        echo "`sysctl -n hw.model | sed 
+'s,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
        ;;
 
     NetBSD:*)

NetBSD needs libcompat for ftime() (as the other BSDs.) Use the same
workaround for NetBSD too. I treat it as FreeBSD and defines USE_TOD,
otherwise the program flow will fall off Time_F() without returning
an result (which AFICT happens for UNICOS, OpenBSD, sgi, bsdi, AOX
and MPE.)

--- apps/speed.c.bak    Thu Sep 21 19:00:10 2000
+++ apps/speed.c        Sat Oct 21 22:17:13 2000
@@ -82,12 +82,12 @@
 #include <openssl/rand.h>
 #include <openssl/err.h>
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 # define USE_TOD
 #elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
 # define TIMES
 #endif
-#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && 
!defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && 
!defined(MPE)
+#if !defined(_UNICOS) && !defined(__NetBSD__) && !defined(__OpenBSD__) && 
+!defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && 
+!defined(_AIX) && !defined(MPE)
 # define TIMEB
 #endif

   /Krister

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

Reply via email to