summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-10 13:02:19 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-10 13:02:19 +0100
commit6f633b7aef2af2801d059acda48b424fc12c71ac (patch)
tree80b2503c556a7864b4fe8debb4d106755b10e95d /libc
parentc725e8ba5f049686ed7318d6b4710308677462c9 (diff)
really fix missing __libc_drand48_data
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/drand48-iter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdlib/drand48-iter.c b/libc/stdlib/drand48-iter.c
index e0c1ce430..7d705adca 100644
--- a/libc/stdlib/drand48-iter.c
+++ b/libc/stdlib/drand48-iter.c
@@ -21,8 +21,12 @@
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
+#include <stdlib.h>
#include <sys/types.h>
+/* Global state for non-reentrant functions. */
+struct drand48_data __libc_drand48_data;
+
#ifdef __UCLIBC_MJN3_ONLY__
#warning turn int __drand48_iterate into void
#endif /* __UCLIBC_MJN3_ONLY__ */