aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-06-08 22:47:09 +0000
committerBodo Möller <bodo@openssl.org>2000-06-08 22:47:09 +0000
commit6da6a113310ed0e2002a34d2c2630e23e3c506fe (patch)
tree01bdb226ea7315e92f371e64dbf6ef290c952e8c
parent3dd985ee2ab05b4eda53b67395d85269acad74bd (diff)
downloadopenssl-6da6a113310ed0e2002a34d2c2630e23e3c506fe.zip
openssl-6da6a113310ed0e2002a34d2c2630e23e3c506fe.tar.gz
openssl-6da6a113310ed0e2002a34d2c2630e23e3c506fe.tar.bz2
Another attempt to allow compiling on SunOS 4.*.
-rwxr-xr-xConfigure2
-rw-r--r--e_os.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/Configure b/Configure
index 31221bb..0c8ebe7 100755
--- a/Configure
+++ b/Configure
@@ -163,7 +163,7 @@ my %table=(
# Sunos configs, assuming sparc for the gcc one.
##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown)::DES_UNROLL:::",
-"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):-liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
+"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
#### IRIX 5.x configs
# -mips2 flag is added by ./config when appropriate.
diff --git a/e_os.h b/e_os.h
index 948a8bf..f540d77 100644
--- a/e_os.h
+++ b/e_os.h
@@ -404,7 +404,11 @@ extern HINSTANCE _hInstance;
#endif
#if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
-#define memmove(s1,s2,n) bcopy((s2),(s1),(n))
+# define memmove(s1,s2,n) bcopy((s2),(s1),(n))
+# define strtoul(s,e,b) ((unsigned long int)strtol((s),(e),(b)))
+extern char *sys_errlist[]; extern int sys_nerr;
+# define strerror(errnum) \
+ (((errnum)<0 || (errnum)>=sys_nerr) ? NULL : sys_errlist[errnum])
#endif
/***********************************************/