From: Paul Eggert Date: Thu, 13 Aug 2020 22:49:43 +0000 (-0700) Subject: Update from Gnulib X-Git-Tag: emacs-28.0.90~6596 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48c7caf3aca85f9878ae05bff9a0dca43b8f540b;p=emacs.git Update from Gnulib This incorporates: 2020-08-13 sys_random: Work around an uClibc bug * lib/sys_random.in.h, m4/getrandom.m4, m4/sys_random_h.m4: Copy from Gnulib. --- diff --git a/lib/sys_random.in.h b/lib/sys_random.in.h index f14ac1f5723..a82d716de2e 100644 --- a/lib/sys_random.in.h +++ b/lib/sys_random.in.h @@ -23,6 +23,10 @@ #if @HAVE_SYS_RANDOM_H@ +/* On uClibc, assumes prior inclusion of . */ +# if defined __UCLIBC__ +# include +# endif /* On Mac OS X 10.5, assumes prior inclusion of . On Max OS X 10.13, assumes prior inclusion of a file that includes , such as or . */ diff --git a/m4/getrandom.m4 b/m4/getrandom.m4 index 424c2fad3e3..d6da71a2c83 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 on Mac OS X. */ + [[/* Additional includes are needed before on uClibc + and Mac OS X. */ #include #include #include diff --git a/m4/sys_random_h.m4 b/m4/sys_random_h.m4 index a964b157841..8c5d53703be 100644 --- a/m4/sys_random_h.m4 +++ b/m4/sys_random_h.m4 @@ -1,4 +1,4 @@ -# sys_random_h.m4 serial 4 +# sys_random_h.m4 serial 5 dnl Copyright (C) 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, @@ -25,7 +25,8 @@ AC_DEFUN([gl_HEADER_SYS_RANDOM], dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ #if HAVE_SYS_RANDOM_H -/* Additional includes are needed before on Mac OS X. */ +/* Additional includes are needed before on uClibc + and Mac OS X. */ # include # include # include