projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3dd985e
)
Another attempt to allow compiling on SunOS 4.*.
author
Bodo Möller
<bodo@openssl.org>
Thu, 8 Jun 2000 22:47:09 +0000
(22:47 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 8 Jun 2000 22:47:09 +0000
(22:47 +0000)
Configure
patch
|
blob
|
history
e_os.h
patch
|
blob
|
history
diff --git
a/Configure
b/Configure
index 31221bb3386be9e8efcb1ff4d858a86ec416f70e..0c8ebe7b874efd13beed48bfd80a79089c7cf53e 100755
(executable)
--- 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 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.
#### IRIX 5.x configs
# -mips2 flag is added by ./config when appropriate.
diff --git
a/e_os.h
b/e_os.h
index 948a8bfd7e1b664c5af9fe95b44ee5f7090d9927..f540d7752ef897662a4fb30508b6fc5cb5414abd 100644
(file)
--- a/
e_os.h
+++ b/
e_os.h
@@
-404,7
+404,11
@@
extern HINSTANCE _hInstance;
#endif
#if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
#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
/***********************************************/
#endif
/***********************************************/