diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-15 14:01:31 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-15 14:01:31 +0000 |
commit | d4efecb283fb836470c61f9f32957c53f25c7421 (patch) | |
tree | ee444b4cddd6cb772712b1b5f53a218d0a542036 | |
parent | 987163643c14a59f09f25cdcbbe4b87810ca5b28 (diff) | |
download | src-d4efecb283fb836470c61f9f32957c53f25c7421.tar.gz src-d4efecb283fb836470c61f9f32957c53f25c7421.zip |
Do not use gawk random, we have better one in libc
Notes
Notes:
svn path=/head/; revision=30441
-rw-r--r-- | contrib/awk/builtin.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/awk/Makefile | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/awk/builtin.c b/contrib/awk/builtin.c index 0686041ce914..e620985c5765 100644 --- a/contrib/awk/builtin.c +++ b/contrib/awk/builtin.c @@ -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; diff --git a/gnu/usr.bin/awk/Makefile b/gnu/usr.bin/awk/Makefile index 1af817fdfd26..57b631ac56ec 100644 --- a/gnu/usr.bin/awk/Makefile +++ b/gnu/usr.bin/awk/Makefile @@ -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 |