X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstdlib.in.h;h=f6ebe253c8775b8b5bd4fee65dfd2e09f103ffb1;hb=b314ca18dc36e59297f66b2508fd58535a1cd724;hp=8d0add62c45d9192d613bad5c0530928bd1832e5;hpb=9c76df329017b8784ee96642150429a5136fb62b;p=gnulib.git diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 8d0add62c..f6ebe253c 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -41,10 +41,23 @@ # include #endif -#if @GNULIB_RANDOM_R@ +#if @GNULIB_RANDOM_R@ || !@HAVE_STRUCT_RANDOM_DATA@ # include #endif +#if !@HAVE_STRUCT_RANDOM_DATA@ +struct random_data +{ + int32_t *fptr; /* Front pointer. */ + int32_t *rptr; /* Rear pointer. */ + int32_t *state; /* Array of state values. */ + int rand_type; /* Type of random number generator. */ + int rand_deg; /* Degree of random number generator. */ + int rand_sep; /* Distance between front and rear. */ + int32_t *end_ptr; /* Pointer behind state table. */ +}; +#endif + /* The definition of GL_LINK_WARNING is copied here. */