]> git.eshelyaron.com Git - emacs.git/commitdiff
Update from Gnulib
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Aug 2020 22:49:43 +0000 (15:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Aug 2020 22:50:12 +0000 (15:50 -0700)
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.

lib/sys_random.in.h
m4/getrandom.m4
m4/sys_random_h.m4

index f14ac1f57238ed181e611a8fbf082fa89b647084..a82d716de2e4a3675ac709adc0e82e620b3ba38e 100644 (file)
 
 #if @HAVE_SYS_RANDOM_H@
 
+/* On uClibc, <sys/random.h> assumes prior inclusion of <stddef.h>.  */
+# if defined __UCLIBC__
+#  include <stddef.h>
+# endif
 /* On Mac OS X 10.5, <sys/random.h> assumes prior inclusion of <sys/types.h>.
    On Max OS X 10.13, <sys/random.h> assumes prior inclusion of a file that
    includes <Availability.h>, such as <stdlib.h> or <unistd.h>.  */
index 424c2fad3e3dd7ec8d302c47d1c7698da96d7e68..d6da71a2c83ed354cbc2a796c7fbf008342fbf5e 100644 (file)
@@ -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>
index a964b157841a6cdb804c07f1cb7cae01ddfc84bd..8c5d53703beaf92749205f0e1dceddcafa76b7c3 100644 (file)
@@ -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 <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>