瀏覽代碼

really fix missing __libc_drand48_data

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 年之前
父節點
當前提交
6f633b7aef
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libc/stdlib/drand48-iter.c

+ 4 - 0
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__ */