Do not use gawk random, we have better one in libc
This commit is contained in:
parent
987163643c
commit
d4efecb283
@ -30,6 +30,7 @@
|
||||
#undef CHARBITS
|
||||
#undef INTBITS
|
||||
#include <math.h>
|
||||
#ifndef __FreeBSD__
|
||||
#include "random.h"
|
||||
|
||||
/* can declare these, since we always use the random shipped with gawk */
|
||||
@ -37,6 +38,7 @@ extern char *initstate P((unsigned seed, char *state, int n));
|
||||
extern char *setstate P((char *state));
|
||||
extern long random P((void));
|
||||
extern void srandom P((unsigned int seed));
|
||||
#endif
|
||||
|
||||
extern NODE **fields_arr;
|
||||
extern int output_is_tty;
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
|
||||
#
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.7 1997/10/14 18:32:33 jraynard Exp $
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc"
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
PROG= awk
|
||||
SRCS= array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
|
||||
missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c random.c
|
||||
missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c
|
||||
MAN1= doc/awk.1
|
||||
|
||||
YACC = bison -y
|
||||
|
Loading…
Reference in New Issue
Block a user