Mingw32 results in:
./stdlib.h:260: error: expected declaration specifiers or '...' before 'int32_t'
The patch below should fix it, although untested.
/Simon
diff --git a/ChangeLog b/ChangeLog
index 47913b9..84e16d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-23 Simon Josefsson <[EMAIL PROTECTED]>
+
+ * modules/random_r (Depends-on): Add stdint.
+
+ * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h, for
+ int32_t.
+
2008-10-23 Jim Meyering <[EMAIL PROTECTED]>
random_r: new module
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index b44703b..60dce30 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -220,6 +220,8 @@ extern int putenv (char *string);
#if @GNULIB_RANDOM_R@
# if [EMAIL PROTECTED]@
+# include <stdint.h>
+
# ifndef RAND_MAX
# define RAND_MAX 2147483647
# endif
diff --git a/modules/random_r b/modules/random_r
index ad5c0f5..55bf241 100644
--- a/modules/random_r
+++ b/modules/random_r
@@ -7,6 +7,7 @@ m4/random_r.m4
Depends-on:
stdlib
+stdint
configure.ac:
gl_FUNC_RANDOM_R