[cvs] bogofilter/src wordlists.c,1.48,1.49
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@pr...> - 2004-02-01 14:21:43
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18533/src Modified Files: wordlists.c Log Message: Define RAND_MAX for SunOS. Index: wordlists.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/wordlists.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- wordlists.c 31 Jan 2004 05:05:17 -0000 1.48 +++ wordlists.c 1 Feb 2004 14:19:46 -0000 1.49 @@ -22,6 +22,10 @@ #define MIN_SLEEP 0.5e+3 /* 0.5 milliseconds */ #define MAX_SLEEP 2.0e+6 /* 2.0 seconds */ +#ifndef RAND_MAX +#define RAND_MAX 2147483647 /* May not work on SysV */ +#endif + /* Function Prototypes */ static void rand_sleep(double min, double max); |