diff options
author | Richard Levitte <levitte@openssl.org> | 2002-07-18 07:47:30 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-07-18 07:47:30 +0000 |
commit | 9335a5f7c07cf16d3d167edee078b33c8dab725d (patch) | |
tree | 5a2c3e0065a43217aace42d96abb8befe85fc1a0 | |
parent | 32bf74e30ee987b6162dc1807d9189a9c45a8795 (diff) | |
download | openssl-9335a5f7c07cf16d3d167edee078b33c8dab725d.tar.gz |
Unixware doesn't have strings.h, so we need to declare strcasecmp()
differently.
Unixware 2 needs to link with libresolv.
PR: 148
-rwxr-xr-x | Configure | 10 | ||||
-rw-r--r-- | apps/apps.c | 6 | ||||
-rw-r--r-- | apps/ca.c | 6 |
3 files changed, 15 insertions, 7 deletions
@@ -413,13 +413,13 @@ my %table=( "linux-elf-arm","gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:::BN_LLONG::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", # UnixWare 2.0x fails destest with -O -"unixware-2.0","cc:-DFILIO_H::-Kthread::-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::", -"unixware-2.0-pentium","cc:-DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", +"unixware-2.0","cc:-DFILIO_H -DNO_STRINGS_H::-Kthread::-lsocket -lnsl -lresolv -lx:${x86_gcc_des} ${x86_gcc_opts}:::", +"unixware-2.0-pentium","cc:-DFILIO_H -DNO_STRINGS_H -Kpentium::-Kthread::-lsocket -lnsl -lresolv -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", # UnixWare 2.1 -"unixware-2.1","cc:-O -DFILIO_H::-Kthread::-lsocket -lnsl -lx:${x86_gcc_des} ${x86_gcc_opts}:::", -"unixware-2.1-pentium","cc:-O -DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", -"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-Kthread::-lsocket -lnsl -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", +"unixware-2.1","cc:-O -DFILIO_H::-Kthread::-lsocket -lnsl -lresolv -lx:${x86_gcc_des} ${x86_gcc_opts}:::", +"unixware-2.1-pentium","cc:-O -DFILIO_H -Kpentium::-Kthread::-lsocket -lnsl -lresolv -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", +"unixware-2.1-p6","cc:-O -DFILIO_H -Kp6::-Kthread::-lsocket -lnsl -lresolv -lx:MD2_CHAR RC4_INDEX ${x86_gcc_des}::", # UnixWare 7 "unixware-7","cc:-O -DFILIO_H -Kalloca::-Kthread::-lsocket -lnsl:BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}::::::::::dlfcn:svr5-shared:-Kpic::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", diff --git a/apps/apps.c b/apps/apps.c index ac18296e67..40faa02f90 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -129,7 +129,11 @@ #ifdef OPENSSL_SYS_WINDOWS #define strcasecmp _stricmp #else -#include <strings.h> +# ifdef NO_STRINGS_H + int strcasecmp(); +# else +# include <strings.h> +# endif /* NO_STRINGS_H */ #endif #ifdef OPENSSL_SYS_WINDOWS @@ -80,7 +80,11 @@ #ifdef OPENSSL_SYS_WINDOWS #define strcasecmp _stricmp #else -#include <strings.h> +# ifdef NO_STRINGS_H + int strcasecmp(); +# else +# include <strings.h> +# endif /* NO_STRINGS_H */ #endif #ifndef W_OK |