Hi,

I would like to submit two minor changes that allow openssl to build and run
on PPC LynxOS 3.1.0a.  This patch file doesn't contain any changes to the
cryptography code, so I didn't send it to [EMAIL PROTECTED]

The files that were modified were:

Configure
crypto/o_time.c

The Configure change was to add a lynx-ppc-gcc configuration and the
o_time.c was to avoid using gmtime_r() on LynxOS.

Thanks,
Chad Elliott
Object Computing, Inc.
--- ../orig/openssl-0.9.7-stable-SNAP-20020326/Configure        Fri Mar 15 11:03:40 
2002
+++ Configure   Wed Mar 27 12:31:02 2002
@@ -516,6 +516,9 @@
 # K&R C is no longer supported; you need gcc on old Ultrix installations
 ##"ultrix","cc:-O2 -DNOPROTO -DNOCONST -DL_ENDIAN::(unknown):::::::",
 
+# LynxOS from Chad Elliott <[EMAIL PROTECTED]>
+"lynx-ppc-gcc","gcc:-O3 -DB_ENDIAN -D__NO_INCLUDE_WARN__::-mthreads::-lbsd:::::",
+
 # Some OpenBSD from Bob Beck <[EMAIL PROTECTED]>
 "OpenBSD",             "gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown):::BN_LLONG 
RC2_CHAR RC4_INDEX DES_INT 
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "OpenBSD-alpha",       "gcc:-DTERMIOS -O3 
-fomit-frame-pointer::(unknown):::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR 
DES_RISC2::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
--- ../orig/openssl-0.9.7-stable-SNAP-20020326/crypto/o_time.c  Tue Jan  8 03:19:30 
2002
+++ crypto/o_time.c     Wed Mar 27 12:45:20 2002
@@ -73,7 +73,7 @@
        {
        struct tm *ts = NULL;
 
-#if defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32) && 
!defined(OPENSSL_SYS_OS2) && !defined(__CYGWIN32__) && (!defined(OPENSSL_SYS_VMS) || 
defined(gmtime_r)) && !defined(OPENSSL_SYS_MACOSX)
+#if defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32) && 
+!defined(OPENSSL_SYS_OS2) && !defined(__CYGWIN32__) && (!defined(OPENSSL_SYS_VMS) || 
+defined(gmtime_r)) && !defined(OPENSSL_SYS_MACOSX) && !defined(__Lynx__)
        /* should return &data, but doesn't on some systems,
           so we don't even look at the return value */
        gmtime_r(timer,result);

Reply via email to