summaryrefslogtreecommitdiff
path: root/m4/getrandom.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-13 17:49:35 +0200
committerBruno Haible <bruno@clisp.org>2020-08-13 17:49:35 +0200
commit4e082bffbcc46e68644ae0d59b4f09bf2b5feb84 (patch)
tree12a474bf27e6c3efb48edf945228d5af1a65c5b1 /m4/getrandom.m4
parent1a5ab8331da8c0f2fe54b937064b64271ec15550 (diff)
downloadgnulib-4e082bffbcc46e68644ae0d59b4f09bf2b5feb84.tar.gz
sys_random: Work around an uClibc bug.
Reported by akater <nuclearspace@gmail.com> via Stefan Kangas <stefan@marxist.se> in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>. * lib/sys_random.in.h: On uClibc, include <stddef.h> first. * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment. * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise. * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
Diffstat (limited to 'm4/getrandom.m4')
-rw-r--r--m4/getrandom.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/getrandom.m4 b/m4/getrandom.m4
index 424c2fad3e..d6da71a2c8 100644
--- a/m4/getrandom.m4
+++ b/m4/getrandom.m4
@@ -1,4 +1,4 @@
-# getrandom.m4 serial 7
+# getrandom.m4 serial 8
dnl Copyright 2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,8 @@ AC_DEFUN([gl_FUNC_GETRANDOM],
[gl_cv_func_getrandom_ok],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
- [[/* Additional includes are needed before <sys/random.h> on Mac OS X. */
+ [[/* Additional includes are needed before <sys/random.h> on uClibc
+ and Mac OS X. */
#include <sys/types.h>
#include <stdlib.h>
#include <sys/random.h>