Skip to content

Commit

Permalink
Another attempt to allow compiling on SunOS 4.*.
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Jun 8, 2000
1 parent 3dd985e commit 6da6a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configure
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/***********************************************/
Expand Down

0 comments on commit 6da6a11

Please sign in to comment.