diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:14:38 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 13:14:38 +0300 |
commit | fae4762eba9ff7bb466a600130e9c90eaac6b0bc (patch) | |
tree | 62711fe7cd511824b5f8a90ba1ba7b523d42e127 /random.c | |
parent | bc70de7b3302d5a81515b901cae376b8b51d2004 (diff) | |
download | egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.gz egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.tar.bz2 egawk-fae4762eba9ff7bb466a600130e9c90eaac6b0bc.zip |
Move to gawk-3.1.1.
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -40,12 +40,18 @@ static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95"; #include "random.h" /* gawk addition */ +/* + * srandomdev() isn't used by gawk, and it causes numerous + * compile headaches, so just blow it away. + */ +#if 0 #if !defined (_MSC_VER) && !defined (__MINGW32__) && !defined (VMS) #include <sys/time.h> /* for srandomdev() */ #else #include <time.h> /* for clock() */ #define ssize_t size_t #endif /* !defined (_MSC_VER) && !defined (__MINGW32__) && !defined (VMS) */ +#endif #include <stdio.h> @@ -54,12 +60,15 @@ static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95"; #include <stdlib.h> #endif +/* same thing here: */ +#if 0 #ifdef HAVE_UNISTD_H #include <unistd.h> /* for srandomdev() */ #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> /* for srandomdev() */ #endif +#endif /* * random.c: @@ -303,6 +312,7 @@ srandom(x) * state buffer are no longer derived from the LC algorithm applied to * a fixed seed. */ +#if 0 void srandomdev() { @@ -349,6 +359,7 @@ srandomdev() rptr = &state[0]; } } +#endif /* * initstate: |