diff options
Diffstat (limited to 'includes/cf/sunos5-5.h')
-rw-r--r-- | includes/cf/sunos5-5.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/cf/sunos5-5.h b/includes/cf/sunos5-5.h index 29e72939..0b3d7ffb 100644 --- a/includes/cf/sunos5-5.h +++ b/includes/cf/sunos5-5.h @@ -123,8 +123,10 @@ extern int h_errno; /* Solaris prior to 2.5 didn't have random(). Rather than being clever and using random() only on versions >2.5, always use rand() and srand(). */ +#if SOLARIS_MAJOR == 5 && SOLARIS_MINOR < 5 #define random() rand() #define srandom(x) srand(x) +#endif /* Solaris doesn't provide an endian.h, so we have to do it. */ @@ -150,6 +152,10 @@ extern int h_errno; #define ALIAS_NAMES_PERMUTED +#if SOLARIS_MAJOR == 5 && SOLARIS_MINOR < 7 +typedef int socklen_t; +#endif + #ifdef NEED_PRAND_CONF const char *cmds[] = { "/bin/ps -ef 2>&1", |