stpohle 22 years ago
parent 6028ec539c
commit 29217abb05

@ -44,6 +44,10 @@ case "$target" in
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
LIBS="$LIBS -liberty -lwsock32" LIBS="$LIBS -liberty -lwsock32"
;; ;;
*solaris* )
CFLAGS="$CFLAGS"
LIBS="$LIBS -lsocket -lnsl -lm"
;;
esac esac
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"

@ -1,4 +1,4 @@
/* $Id: sysfunc.c,v 1.18 2003/09/10 21:32:22 stpohle Exp $ /* $Id: sysfunc.c,v 1.19 2003/09/11 19:44:32 stpohle Exp $
sysfunc.c - this file hold some routines for the system functions.. sysfunc.c - this file hold some routines for the system functions..
like d_delay like d_delay
*/ */
@ -30,7 +30,7 @@ s_delay (int ms)
int int
s_random (int maxnr) s_random (int maxnr)
{ {
#ifdef _WIN32 #if ( defined _WIN32 ) || ( RAND_MAX < 2147483647UL )
return ((rand () * maxnr) / RAND_MAX); return ((rand () * maxnr) / RAND_MAX);
#else #else
int i; int i;

Loading…
Cancel
Save