summaryrefslogtreecommitdiffstats
path: root/contrib/awk
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-15 14:01:31 +0000
committerache <ache@FreeBSD.org>1997-10-15 14:01:31 +0000
commit9bf78b0184c72a1926978692dbe86c68b68df723 (patch)
tree0ba80316f4d5e2a40a06c3f279ca1c4c691d6451 /contrib/awk
parentd842f3f837a4eafa616c969c48d23e6b6370d34c (diff)
downloadFreeBSD-src-9bf78b0184c72a1926978692dbe86c68b68df723.zip
FreeBSD-src-9bf78b0184c72a1926978692dbe86c68b68df723.tar.gz
Do not use gawk random, we have better one in libc
Diffstat (limited to 'contrib/awk')
-rw-r--r--contrib/awk/builtin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/awk/builtin.c b/contrib/awk/builtin.c
index 0686041..e620985 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;
OpenPOWER on IntegriCloud