diff options
Diffstat (limited to 'libgfortran/intrinsics/random.c')
-rw-r--r-- | libgfortran/intrinsics/random.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libgfortran/intrinsics/random.c b/libgfortran/intrinsics/random.c index 09a3fea62dd..c1539243c0e 100644 --- a/libgfortran/intrinsics/random.c +++ b/libgfortran/intrinsics/random.c @@ -1,5 +1,5 @@ /* Implementation of the RANDOM intrinsics - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2004 Free Software Foundation, Inc. Contributed by Lars Segerlund <seger@linuxmail.org> The algorithm was taken from the paper : @@ -37,7 +37,11 @@ Boston, MA 02111-1307, USA. */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include <assert.h> + +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #include "libgfortran.h" /*Use the 'big' generator by default ( period -> 2**19937 ). */ |