about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-13 10:10:59 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-13 11:11:54 +0100
commit8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17 (patch)
tree7e57b78b0a5afa580234ca80ed886de02b766886 /include
parentf7649d5780aa4682393b9daedd653e4d9c12784c (diff)
downloadglibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.gz
glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.tar.xz
glibc-8eaf34eda256ba3647ed6e7ed5c7c9aa19955d17.zip
hurd: Fix local PLT
* include/sys/random.h (__getrandom): Add hidden prototype.
* stdlib/getrandom.c (getrandom): Rename to hidden definition __getrandom.
Add weak alias.
* sysdeps/mach/hurd/getrandom.c (getrandom): Likewise.
* sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
* sysdeps/mach/hurd/getentropy.c (getentropy): Use __getrandom instead of
getrandom.
Diffstat (limited to 'include')
-rw-r--r--include/sys/random.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/random.h b/include/sys/random.h
index b33d114b74..6aa313d35d 100644
--- a/include/sys/random.h
+++ b/include/sys/random.h
@@ -1 +1,11 @@
+#ifndef _SYS_RANDOM_H
 #include <stdlib/sys/random.h>
+
+# ifndef _ISOMAC
+
+extern ssize_t __getrandom (void *__buffer, size_t __length,
+                            unsigned int __flags) __wur;
+libc_hidden_proto (__getrandom)
+
+# endif /* !_ISOMAC */
+#endif