From 7ed33cba81fdcef882edda1c9a9a12397dcc3616 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 1 Mar 2003 22:32:04 +0000 Subject: * elf/dl-reloc.c (allocate_static_tls): Fix calculations. From Jakub Jelinek . * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change, which duplicated the O_DIRECT defn. 2003-03-01 GOTO Masanori * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived random functions. * resolv/Makefile (tests): Don't depend on $(objpfx)mtrace-tst-leaks when cross compiling. --- stdlib/stdlib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 6ab675f..87b559a 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -410,7 +410,9 @@ extern char *l64a (long int __n) __THROW; /* Read a number from a string S in base 64 as above. */ extern long int a64l (__const char *__s) __THROW __attribute_pure__; +#endif /* Use SVID || extended X/Open. */ +#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED || defined __USE_BSD # include /* we need int32_t... */ /* These are the functions that actually do things. The `random', `srandom', @@ -463,7 +465,7 @@ extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) __THROW; # endif /* Use misc. */ -#endif /* Use SVID || extended X/Open. */ +#endif /* Use SVID || extended X/Open || BSD. */ __BEGIN_NAMESPACE_STD -- cgit v1.1