[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] random_r: new module
From: |
Simon Josefsson |
Subject: |
Re: [PATCH] random_r: new module |
Date: |
Thu, 23 Oct 2008 19:39:49 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
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 <address@hidden>
+
+ * 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 <address@hidden>
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 address@hidden@
+# 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
- [PATCH] random_r: new module, Jim Meyering, 2008/10/22
- Re: [PATCH] random_r: new module, Bruno Haible, 2008/10/22
- Re: [PATCH] random_r: new module, Simon Josefsson, 2008/10/23
- Re: [PATCH] random_r: new module, Richard W.M. Jones, 2008/10/23
- Re: [PATCH] random_r: new module,
Simon Josefsson <=
- Re: [PATCH] random_r: new module, Simon Josefsson, 2008/10/24
- Re: [PATCH] random_r: new module, Jim Meyering, 2008/10/24
- Re: [PATCH] random_r: new module, Bruno Haible, 2008/10/24