--- ray/src/util/makedist.c 1991/03/12 13:05:09 1.1 +++ ray/src/util/makedist.c 1993/08/02 14:35:13 2.3 @@ -22,8 +22,11 @@ static char SCCSid[] = "$SunId$ LBL"; #include "random.h" -#include "setscan.c" +#include "setscan.h" +#ifndef BSD +#define vfork fork +#endif #define FTINY 1e-7 @@ -36,6 +39,9 @@ int rtargc = 2; #define passarg(s) (rtargv[rtargc++] = s) +#ifdef DCL_ATOF +extern double atof(); +#endif /* default angles */ ANGLE alpha[181] = {10, 25, 40, 55, 70, 85, AEND}; ANGLE beta[361] = {0,30,60,90,120,150,180,210,240,270,300,330,AEND}; @@ -60,7 +66,6 @@ main(argc, argv) int argc; char *argv[]; { - double atof(); int i; progname = argv[0];